Question : Email Relaying Problems causing "451 Temporary local problem - please try later"



I have a EMAIL SERVER at (khova.net) which handels the email for (be-web.khova.net).  I have a php script that sends email.  Email sent from root work but apache seems to cause a "451 Temporary local problem - please try later (in reply to RCPT TO command))". I have been looking at this for a few hours but unable to figure out what is the problem.

Any ideas would be very helpfull.



=====================================================================================================================================================
PHP TEST MAIL SCRIPT RAN FROM ROOT ON THE WEB SERVER
=====================================================================================================================================================

Aug  8 17:53:55 be-web sendmail[11376]: n78LrtA4011376: from=root, size=58, class=0, nrcpts=1, msgid=<200908082153.n78LrtA4011376@be-web.khova.net>, relay=root@localhost
Aug  8 17:53:56 be-web postfix/smtpd[11377]: connect from localhost.localdomain[127.0.0.1]
Aug  8 17:53:56 be-web postfix/smtpd[11377]: 04B61177B5: client=localhost.localdomain[127.0.0.1]
Aug  8 17:53:56 be-web postfix/cleanup[11380]: 04B61177B5: message-id=<200908082153.n78LrtA4011376@be-web.khova.net>
Aug  8 17:53:56 be-web postfix/qmgr[11037]: 04B61177B5: from=t>, size=490, nrcpt=1 (queue active)
Aug  8 17:53:56 be-web sendmail[11376]: n78LrtA4011376: [email protected]om, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30058, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 04B61177B5)
Aug  8 17:53:56 be-web postfix/smtpd[11377]: disconnect from localhost.localdomain[127.0.0.1]
Aug  8 17:53:56 be-web postfix/smtp[11381]: 04B61177B5: to=com>, relay=khova.net[64.22.124.145]:25, delay=0.16, delays=0.05/0.01/0.01/0.1, dsn=2.0.0, status=sent (250 OK id=1MZtrQ-0000CV-0b)
Aug  8 17:53:56 be-web postfix/qmgr[11037]: 04B61177B5: removed

=====================================================================================================================================================
SAME TEST SCRIPT RAN FROM THE WEBPAGE
=====================================================================================================================================================

Aug  8 17:55:14 be-web sendmail[11395]: n78LtE0x011395: from=apache, size=186, class=0, nrcpts=1, msgid=<200908082155.n78LtE0x011395@be-web.khova.net>, relay=apache@localhost
Aug  8 17:55:14 be-web postfix/smtpd[11377]: connect from localhost.localdomain[127.0.0.1]
Aug  8 17:55:14 be-web postfix/smtpd[11377]: 3744C177B5: client=localhost.localdomain[127.0.0.1]
Aug  8 17:55:14 be-web postfix/cleanup[11380]: 3744C177B5: message-id=<200908082155.n78LtE0x011395@be-web.khova.net>
Aug  8 17:55:14 be-web postfix/qmgr[11037]: 3744C177B5: from=net>, size=627, nrcpt=1 (queue active)
Aug  8 17:55:14 be-web sendmail[11395]: n78LtE0x011395: [email protected]om, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30186, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 3744C177B5)
Aug  8 17:55:14 be-web postfix/smtpd[11377]: disconnect from localhost.localdomain[127.0.0.1]
Aug  8 17:55:14 be-web postfix/smtp[11381]: 3744C177B5: to=com>, relay=khova.net[64.22.124.145]:25, delay=0.1, delays=0.05/0/0.01/0.03, dsn=4.0.0, status=deferred (host khova.net[64.22.124.145] said: 451 Temporary local problem - please try later (in reply to RCPT TO command))

Answer : Email Relaying Problems causing "451 Temporary local problem - please try later"

Hi,

Waht do you have in your /etc/mail/relay-domains and /etc/mail/access.

Please try to add your domain be-web.kheva.net in your relay domasin. Also add your internal ip range in your /etc/mail/access such as

10.0                   RELAY

dont for get to issue

makemap hash /etc/mail/relay < /etc/mail/relay

and restart the server.

Cheers,
K.


Random Solutions  
 
programming4us programming4us