PDA

View Full Version : Postfix is trying to send to example.com


bdpq
1st July 2008, 17:20
Hello,

I need some help with the Postfix configuration.

After following the step by step instruction on Virtual Hosting Howto With Virtualmin On CentOS 5.1 (http://www.howtoforge.com/virtual-hosting-with-virtualmin-on-centos5.1)I got the following error from the mail log

Jul 1 07:01:06 host postfix/smtpd[3661]: connect from yx-out-1718.google.com[74.125.44.153]
Jul 1 07:01:06 host postfix/smtpd[3661]: NOQUEUE: reject: RCPT from yx-out-1718.google.com[74.125.44.153]: 450 4.1.1 <admin@wxlstudio.com>: Recipient address rejected: unverified address: connect to example.com[208.77.188.166]: Connection timed out; from=<wxlstudio@gmail.com> to=<admin@wxlstudio.com> proto=ESMTP helo=<yx-out-1718.google.com>
Jul 1 07:01:06 host postfix/smtpd[3661]: disconnect from yx-out-1718.google.com[74.125.44.153]

in the main.cf file, there is no attribute says "example.com".. Below the is the portion of the main.cf file

command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
myhostname = host.wxlstudio.com
mydomain = localhost
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
sender_canonical_maps = hash:/etc/postfix/canonical
recipient_canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
mail_spool_directory = /var/spool/mail

home_mailbox = Maildir/

Can anyone help me with this problem?

I am using Centos with webmin and virtualmin. and yes, I am a newbie :(

topdog
1st July 2008, 17:23
what is in /etc/postfix/virtual

bdpq
1st July 2008, 17:36
this is what is in the virtual

wxlstudio@wxlstudio.com wxlstudio
wxlstudio.com wxlstudio.com
abuse@wxlstudio.com wxlstudio@wxlstudio.com
webmaster@wxlstudio.com wxlstudio@wxlstudio.com
hostmaster@wxlstudio.com wxlstudio@wxlstudio.com
postmaster@wxlstudio.com wxlstudio@wxlstudio.com
admin@wxlstudio.com admin.wxlstudio

Nothing really suspicious

bdpq
1st July 2008, 17:43
after removing the following lines from the main.cf file, I somehow made it work.

However, these lines should be pretty standard, isn't it?

smtpd_data_restrictions = reject_unauth_pipelining
smtpd_recipient_restrictions =
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
check_recipient_access hash:/etc/postfix/access
reject_unknown_recipient_domain
reject_unknown_sender_domain
#reject_unknown_hostname
#reject_unknown_client
reject_unverified_recipient
#reject_unverified_sender
reject_non_fqdn_recipient
reject_non_fqdn_sender
#reject_non_fqdn_hostname
reject_invalid_hostname
reject_rbl_client list.dsbl.org
reject_rbl_client zen.spamhaus.org
reject_rbl_client l1.spews.dnsbl.sorbs.net
reject_rbl_client combined.njabl.org
reject_rbl_client bl.spamcop.net
reject_rhsbl_sender dsn.rfc-ignorant.org
reject_rhsbl_sender bogusmx.rfc-ignorant.org
reject_rhsbl_sender rhsbl.sorbs.net
reject_rhsbl_client dsn.rfc-ignorant.org
reject_rhsbl_client bogusmx.rfc-ignorant.org
reject_rhsbl_client rhsbl.sorbs.net

This is really strange

bdpq
1st July 2008, 17:49
For some strange reason, it is working now.

For the longest time I could not fix it but now it is mysteriously fixed.

I will post more updates if problem reappears.

Thanks