Postfix (3)


configure sendmail on mac os x

Unable to send email using PHP mail()? Learn how to configure sendmail on mac os x… Open up /etc/php.ini and set the sendmail_path: [code] sendmail_path = "/usr/sbin/sendmail -t -i" [/code] then restart apache: [code] apachectl restart [/code] if you try sendmail… [code]sendmail[/code] you will get an error: [code] sendmail: fatal: chdir /Library/Server/Mail/Data/spool: No such file […]

Read more...



Block IP address from connecting to server using iptables

To block IP address from connecting to server, i use iptables. this morning, i noticed some idiot trying to log into my server over and over, and so a quick iptables line will kick them off (until they change their IP and try again of course). [code] /sbin/iptables -I INPUT -s 74.63.223.222 -j DROP [/code] […]

Read more...



repairing a broken postfix on plesk 9

first, stop the mail manager: [code]/usr/local/psa/admin/sbin/mailmng –stop-service[/code] then locate all of the shitty mapped mailbox junk and delete it: [code]find /usr/local/psa/handlers/before-* -type f | while read h ; do [ ! -d /usr/local/psa/handlers/info/$(basename $h) ] && rm -f "$h"  ; done[/code] run mchk to rebuild all of the structure: [code]/usr/local/psa/admin/sbin/mchk –with-spam[/code] and restart the mail […]

Read more...