52ky 发表于 2022-9-22 15:28:37

sendmail配置 的自动化脚本

方式:linux
已经测试并通过
用法:
#!/usr/bin/perl
uselibqw(.);
useserver_setup;
stop_mail_server();
backup_mail_files();
check_software_install(sendmail);
check_software_install(imap);
check_software_install(pop3);
edit_monitor_ip();
limit_msg_max_size(1024);
limit_max_daemon_child(128);
edit_service_port(1234,4540,5555);
init_H/OST_domain_config('1.1.1.1','baidu','2.2.2.2','google');
start_mail_server();
creat_mail_accounts(
,
);
clean_mail_box(user1,user2);
delete_mail_accounts(user1,user2);
restore_file();
server_setup.pm.txt
.....太多文件了略.....

(method: linux
tested and passed
usage:
#!/usr/bin/perl
uselibqw(.);
useserver_setup;
stop_mail_server();
backup_mail_files();
check_software_install(sendmail);
check_software_install(imap);
check_software_install(pop3);
edit_monitor_ip();
limit_msg_max_size(1024);
limit_max_daemon_child(128);
edit_service_port(1234,4540,5555);
init_H/OST_domain_config('1.1.1.1','baidu','2.2.2.2','google');
start_mail_server();
creat_mail_accounts(
,
);
clean_mail_box(user1,user2);
delete_mail_accounts(user1,user2);
restore_file();
server_setup.pm.txt
.....too many files .....)




页: [1]
查看完整版本: sendmail配置 的自动化脚本