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 […]
- November 13, 2012
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 126.96.36.199 -j DROP [/code] […]
- October 1, 2012
Linux, Plesk, ...
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 […]