Good day. I had setup the perfect server in CentOS 6.5 x64 & postfix 2.11, and had migrated all my hosting accounts over. I noticed that I could not send out the email to those domains that hosted at this server but using the Gmail service. It giving me the error message "SMTP Error (550): Failed to add recipient (5.1.1 Recipient address rejected: User unknown in virtual mailbox table)". Below is the email header from the bounced back message: Dovecot settings: And, the maillog from login onto email account, sent out email & received the bounced back message: Anything help/suggestion will be appreciated. Thanks. CK
/etc/postfix/master.cf Btw, what is the unix command to list the settings of file (e.g. main.cf) in summary? Thanks Till.
Edit the master.cf file and change the lines: Code: #smtp inet n - n - - smtpd #submission inet n - n - - smtpd # -o smtpd_tls_security_level=encrypt # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticate d,reject # -o milter_macro_daemon_name=ORIGINATING smtps inet n - n - - smtpd # -o smtpd_tls_wrappermode=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticate d,reject # -o milter_macro_daemon_name=ORIGINATING to: Code: smtp inet n - n - - smtpd submission inet n - n - - smtpd -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticate d,reject # -o milter_macro_daemon_name=ORIGINATING smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticate d,reject # -o milter_macro_daemon_name=ORIGINATING and restart postfix. postconf -n shows all changed values and postconf -d shows the defaults.
Your setup is not exactly as described in the perfect setup guide, you added several settings like postgrey, postscreen or rbl's that might cause issues now if the additional software that is required to make this settings work has not been installed or configured correctly. The setup from the perfect setup guide works out of the box, I use it several times a week for customer setups. Did you test if your server worked after you installed it exactly as describd in the perfect setup guide? Are you sure that you added the email domains (not websites) and mailboxes correctly in ispconfig? Please re check them for typos. Your server seems to have dns lookup errors. Please check that the nameservers listed in /etc/resolv.conf are working and reachable from your server.
Thanks for your reply, Till. Yes, I did follow the perfect setup guide except few things I did not install them i.e. mailman, python, ruby. Then, I had tested with few domains created in the ispconfig and also test send email in & out without problem. Then, I started look into other guides just wanted to harden the server security by installing the postgrey & postscreen. I am now having the difficulty to send email to the emails which its domain created in ispconfig & its mx record pointing over to Gmail service. Okay, is the any way that I can uninstall/restore back to the perfect guide settings? This email is not exist in the ispconfig as it pointing to Gmail service. However, its website is created on ispconfig. [root@server log]# cat /etc/resolv.conf options rotate options rotate options rotate options rotate ; generated by /sbin/dhclient-script search members.linode.com infinitech.biz nameserver 106.187.35.20 nameserver 106.187.36.20 nameserver 106.187.34.20 options rotate How should the /etc/resolv.conf suppose to look like?
you can try to make a backup of /etc folder, then download ispconfig tar.gz again, unpack it and run the update.php script in the install folder and choose to reconfigure services during update. This might fix some issues but it will not replace your full configuration, so there might be still issues left afterwards. The error below looks as if mail sends a email to you and not you send a email to gmail and your server rejects the email that comes from gmail as the email account does not exist on your server. And these errors below also indicate the emails were set to your server but the adresses [email protected] were not created in ispconfig on your server. The mx record of a domain must point to the server that handles the email. so if you created the email account locally, then the mx record must point to your server and not to gmail.
Well, had reconfigurired the ispconfig but does not seem any different. Yes, that one is someone sent an email to rdo.my. But I was trying to send out an email from [email protected] to [email protected] (which the mx points to Gmail), kept getting the error 550 while sending to other emails such as [email protected] has no problem. The rdo.my mx record also pointing to Gmail. Both rdo.my & infinitech.com.my websites are created on ispconfig. Could it be firewall blocking it? However, i had disabled the firewall still remain the same result.
[root@server log]# tail -f maillog Apr 22 00:05:19 server dovecot: imap([email protected]): Disconnected: Logged out bytes=294/5847 Apr 22 00:05:23 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5235, secured Apr 22 00:05:23 server dovecot: imap([email protected]): Disconnected: Logged out bytes=292/5558 Apr 22 00:05:28 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5238, secured Apr 22 00:05:28 server dovecot: imap([email protected]): Disconnected: Logged out bytes=294/5847 Apr 22 00:05:42 server postfix/smtpd[4900]: connect from smtpmy01.cimb.com[202.190.74.166] Apr 22 00:05:42 server postfix/smtpd[4900]: NOQUEUE: reject: RCPT from smtpmy01.cimb.com[202.190.74.166]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<smtpmy01.cimb.com> Apr 22 00:05:42 server postfix/smtpd[4900]: disconnect from smtpmy01.cimb.com[202.190.74.166] Apr 22 00:05:56 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5243, secured Apr 22 00:05:56 server dovecot: imap([email protected]): Disconnected: Logged out bytes=91/803 Apr 22 00:06:19 server dovecot: imap([email protected]): Disconnected: Logged out bytes=311/1389 Apr 22 00:06:33 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5261, secured Apr 22 00:06:33 server dovecot: imap([email protected]): Disconnected: Logged out bytes=195/851 Apr 22 00:06:33 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5264, secured Apr 22 00:06:33 server dovecot: imap([email protected]): Disconnected: Logged out bytes=70/523 Apr 22 00:06:35 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5270, secured Apr 22 00:06:35 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5272, secured Apr 22 00:06:35 server dovecot: imap([email protected]): Disconnected: Logged out bytes=294/5847 Apr 22 00:06:35 server dovecot: imap([email protected]): Disconnected: Logged out bytes=233/844 Apr 22 00:06:53 server dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=1.9.204.178, lip=106.186.118.76, mpid=5275, TLS Apr 22 00:06:55 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5278, secured Apr 22 00:06:56 server dovecot: imap([email protected]): Disconnected: Logged out bytes=417/2096 Apr 22 00:06:57 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5281, secured Apr 22 00:06:57 server dovecot: imap([email protected]): Disconnected: Logged out bytes=120/640 Apr 22 00:06:57 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5284, secured Apr 22 00:06:57 server dovecot: imap([email protected]): Disconnected: Logged out bytes=54/752 Apr 22 00:06:59 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5287, secured Apr 22 00:06:59 server dovecot: imap([email protected]): Disconnected: Logged out bytes=32/390 Apr 22 00:07:00 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5290, secured Apr 22 00:07:00 server dovecot: imap([email protected]): Disconnected: Logged out bytes=417/2096 Apr 22 00:07:14 server postfix/smtpd[4900]: connect from localhost[::1] Apr 22 00:07:14 server postfix/smtpd[4900]: warning: table "mysql:/etc/postfix/mysql-virtual_client.cf": empty query string -- ignored Apr 22 00:07:14 server postfix/smtpd[4900]: 2E1804A27: client=localhost[::1] Apr 22 00:07:14 server postfix/cleanup[5312]: 2E1804A27: message-id=<[email protected]> Apr 22 00:07:14 server postfix/qmgr[3554]: 2E1804A27: from=<[email protected]>, size=942, nrcpt=1 (queue active) Apr 22 00:07:14 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5315, secured Apr 22 00:07:14 server postfix/smtpd[4900]: disconnect from localhost[::1] Apr 22 00:07:14 server dovecot: imap([email protected]): Disconnected: Logged out bytes=916/871 Apr 22 00:07:15 server postfix/smtpd[5318]: connect from unknown[127.0.0.1] Apr 22 00:07:15 server postfix/smtpd[5318]: 74E2F4A29: client=unknown[127.0.0.1] Apr 22 00:07:15 server postfix/cleanup[5312]: 74E2F4A29: message-id=<[email protected]> Apr 22 00:07:15 server postfix/qmgr[3554]: 74E2F4A29: from=<[email protected]>, size=1396, nrcpt=1 (queue active) Apr 22 00:07:15 server postfix/smtpd[5318]: disconnect from unknown[127.0.0.1] Apr 22 00:07:15 server amavis[3607]: (03607-05) Passed CLEAN {RelayedOutbound}, MYNETS LOCAL [::1]:56570 [::1] <[email protected]> -> <[email protected]>, Queue-ID: 2E1804A27, Message-ID: <[email protected]>, mail_id: j4UhPRxIZxk1, Hits: -1, size: 942, queued_as: 74E2F4A29, 1257 ms Apr 22 00:07:15 server postfix/smtp[5313]: 2E1804A27: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.4, delays=0.09/0.02/0/1.3, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 74E2F4A29) Apr 22 00:07:15 server postfix/qmgr[3554]: 2E1804A27: removed Apr 22 00:07:16 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5322, secured Apr 22 00:07:16 server dovecot: imap([email protected]): Disconnected: Logged out bytes=70/523 Apr 22 00:07:17 server postfix/smtp[5319]: 74E2F4A29: to=<[email protected]>, relay=none, delay=1.8, delays=0.05/0.04/1.7/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again) Apr 22 00:07:17 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5327, secured Apr 22 00:07:17 server dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5330, secured Apr 22 00:07:17 server dovecot: imap([email protected]): Disconnected: Logged out bytes=120/640 Apr 22 00:07:17 server dovecot: imap([email protected]): Disconnected: Logged out bytes=294/5847 Apr 22 00:07:22 server postfix/anvil[3609]: statistics: max connection rate 4/60s for (smtp:103.6.84.184) at Apr 22 00:01:16 Apr 22 00:07:22 server postfix/anvil[3609]: statistics: max connection count 2 for (smtp:103.6.84.184) at Apr 22 00:01:16 Apr 22 00:07:22 server postfix/anvil[3609]: statistics: max message rate 4/60s for (smtp:103.6.84.184) at Apr 22 00:01:17 Apr 22 00:07:22 server postfix/anvil[3609]: statistics: max cache size 4 at Apr 22 00:02:00