Form mail issue with php script.

If you are getting the following error message

** user@domain.com R=virtual_aliases: No Such User Here

Please remove the domain name from /etc/localdomains

and add the domain to /etc/remotedomains.

This will fix the problem as the domain has MX record outside the server the form mail on the server won’t try to send mail, if you change these two files, it will fix the problem.

If you receive any error as below

2010-10-30 12:19:52 1PCF5s-00037s-3x ** user@anydomain.com R=lookuphost T=remote_s mtp: SMTP error from remote mail server after MAIL FROM: SIZE=1415: host MX.anydomain.com [xxx.xxx.xxx.xxx]: 553 #5.1.8 Domain of sender address does not exist

then

Goto php.ini file and add the following line

“sendmail_path =/usr/sbin/sendmail -t -i -f mailer@yourdomain.com”

Thank you for viewing helpinlinux.com

Leave a Reply

Protected by WP Anti Spam