marticleman
IS-IT--Management
Hello folks:
I just recently installed BSD on a system to make it into a spamserver. Anyhow, the spamserver instructions i followed were from here and it works just fine, it uses postfix, amavis, spamassain, and razor2. However, there is a part during the setup of the spamserver that I am required to remove sendmail, This is basically what the spam server setup asked me to do:
Delete the old sendmail executable. Note that Postfix will install a program called sendmail in the same location for compatibility. Also note that on OpenBSD, the real sendmail executable will still be available in /usr/libexec/sendmail/sendmail. .
# rm /usr/sbin/sendmail
Remove sendmail queue runner command in crontab
# crontab -e
removed the following lines or comment them out with a #
# sendmail clientmqueue runner
*/30 * * * * /usr/sbin/sendmail -L sm-msp-queue -Ac -q
Edit the /etc/rc.conf.local file to prevent sendmail from starting when the computer boots.
Change:
sendmail_flags = NO
Kill off any existing sendmail process.
# ps -ax |grep sendmail
# kill `head -1 /var/run/sendmail.pid`
Ok so now that you know what i have done, is ist surprising that my mail does not work? =P I would assume not. So what i have are a few scripts that run every night that produce reports that iwant to send to root however because my mail does not work nothing happens! the reports get created but they do not get mail and all that i do is make call in my scripts like this
...
<$REPORT mail -s "My Report" root
...
but nothing happens. My question is how do i get my mail to work again WITHOUT breaking my current spamserver setup. do i have to put sendmail back on the rc.conf file? how do i start it? is there a way i can use postfix instead since it says above that postfix installs a sendmail file for compatability? Any help at all would be truly appreciated, thanx!
I just recently installed BSD on a system to make it into a spamserver. Anyhow, the spamserver instructions i followed were from here and it works just fine, it uses postfix, amavis, spamassain, and razor2. However, there is a part during the setup of the spamserver that I am required to remove sendmail, This is basically what the spam server setup asked me to do:
Delete the old sendmail executable. Note that Postfix will install a program called sendmail in the same location for compatibility. Also note that on OpenBSD, the real sendmail executable will still be available in /usr/libexec/sendmail/sendmail. .
# rm /usr/sbin/sendmail
Remove sendmail queue runner command in crontab
# crontab -e
removed the following lines or comment them out with a #
# sendmail clientmqueue runner
*/30 * * * * /usr/sbin/sendmail -L sm-msp-queue -Ac -q
Edit the /etc/rc.conf.local file to prevent sendmail from starting when the computer boots.
Change:
sendmail_flags = NO
Kill off any existing sendmail process.
# ps -ax |grep sendmail
# kill `head -1 /var/run/sendmail.pid`
Ok so now that you know what i have done, is ist surprising that my mail does not work? =P I would assume not. So what i have are a few scripts that run every night that produce reports that iwant to send to root however because my mail does not work nothing happens! the reports get created but they do not get mail and all that i do is make call in my scripts like this
...
<$REPORT mail -s "My Report" root
...
but nothing happens. My question is how do i get my mail to work again WITHOUT breaking my current spamserver setup. do i have to put sendmail back on the rc.conf file? how do i start it? is there a way i can use postfix instead since it says above that postfix installs a sendmail file for compatability? Any help at all would be truly appreciated, thanx!