1

Topic: Accept receiving emails from non-FQDN webserver

==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04
- Related log if you're reporting an issue:

Dec 18 06:49:21 mail postfix/smtpd[18679]: connect from xxxxxxxx.com[xxx.79.xxx.159]
Dec 18 06:49:22 mail postfix/smtpd[18679]: NOQUEUE: reject: RCPT from xxxxxxxxx.com[xxx.79.xxx.159]: 450 4.1.8 <random@random.host.net>: Sender address rejected: Domai$
Dec 18 06:49:22 mail postfix/smtpd[18679]: disconnect from xxxxxxxxx.com[xxx.79.xxx.159]
Dec 18 06:54:22 mail postfix/smtpd[18862]: connect from xxxxxxxxx.com[xxx.79.xxx.159]
Dec 18 06:54:23 mail postfix/smtpd[18862]: NOQUEUE: reject: RCPT from xxxxxxxxx.com[xxx.79.xxx.159]: 450 4.1.8 <random@random.host.net>: Sender address rejected: Domai$
Dec 18 06:54:23 mail postfix/smtpd[18862]: disconnect from xxxxxxxxx.com[xxx.79.xxx.159]
Dec 18 07:30:28 mail postfix/smtpd[19216]: connect from xxxxxxxxx.com[xxx.79.xxx.159]
Dec 18 07:30:29 mail postfix/smtpd[19216]: NOQUEUE: reject: RCPT from xxxxxxxxx.com[xxx.79.xxx.159]: 450 4.1.8 <random@random.host.net>: Sender address rejected: Domai$
Dec 18 07:30:29 mail postfix/smtpd[19216]: disconnect from xxxxxxxxx.com[xxx.79.xxx.159]



====

I am trying to send email from webserver to my iredmail server via phpmail. The hostname of webserver is random non-FQDN name.

the mail log shows, "domain not found 450". I believe it is because random.randomhost.net is not being resolved.

How can I allow emails from this random host to get through without changing its hostname.

I'll truly appreciate some help here.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Accept receiving emails from non-FQDN webserver

Try either one:

1) Enable SMTP authentication in your script.
2) Try to append the IP address of your web server to Postfix (on iRedMail server) parameter "mynetworks =". Restarting Postfix service is required.

#1 is recommended.

3

Re: Accept receiving emails from non-FQDN webserver

Hi Zhang,

Thank you for the prompt support,

1) Not an option, I have a lot of web forms being hosted and everything is working fine except for receiving at iredmail

2) I tried adding the ip of my webserver in iredmail, restarted. I still get the same error.

Any more ideas ?

4

Re: Accept receiving emails from non-FQDN webserver

Oh, i'm so sorry that i misunderstood your issue...

Postfix complains "domain not found", it's caused by option "reject_unknown_sender_domain" OR "reject_unknown_recipient_domain" in parameter "smtpd_recipient_restrictions". Please show us output of below command:

# postconf smtpd_recipient_restrictions

If it's caused by invalid sender domain, please try to move "reject_unknown_sender_domain" after "permit_mynetworks" (in smtpd_recipient_restrictions, too).