Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 30th October 2012, 11:34
magicalshashank31 magicalshashank31 is offline
Junior Member
Join Date: Oct 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default (mail for mail.example.com loops back to myself)

I am configuring E-mail server in centos 6 by following http://www.howtoforge.com/virtual-us...a-17-x86_64-p4.

All things are working, but when i try to send mail it says the error:
1.mail for mail.example.com loops back to myself. #when i try to send mail from my centos6
2.when i try to acces mails via squirrelmail login page ,but when i login through sales@example.com and password secret it says connection dropped by imap server The logs of the maillog file is given
 Oct 30 20:24:34 localhost clamd[5285]: SelfCheck: Database status OK.
Oct 30 20:27:46 localhost imapd: Connection, ip=[::ffff:]
Oct 30 20:27:46 localhost imapd: chdir example.com/sales/: No such file or directory
Oct 30 20:27:46 localhost imapd: sales@example.com: No such file or directory
# when i tery to open sales@example.com it says Connection dropped by imap server .

MY main.cf is:

postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavis:[]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = localhost, localhost.localdomain, server.example.com
mydomain = example.com
myhostname = server.example.com
mynetworks =
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
receive_override_options = no_address_mappings
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains = 
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_uid_maps = static:5000
when i try from system
#mailx sales@example.com
nd check the logs it gives . (here sales@example.com is a virtual user but even the same problem comes up with system users also)
tail /var/log/maillog
Oct 30 20:04:45 localhost postfix/qmgr[9149]: D2B411A1347: from=<root@example.com>, size=863, nrcpt=1 (queue active)
Oct 30 20:04:45 localhost postfix/smtpd[9174]: disconnect from unknown[]
Oct 30 20:04:45 localhost amavis[5323]: (05323-12) Passed CLEAN, <root@example.com> -> <sales@example.com>, Message-ID: <20121030143434.198B01A1348@server.example.com>, mail_id: wtEuHsHmOmVi, Hits: 0, size: 430, queued_as: D2B411A1347, 11797 ms
Oct 30 20:04:45 localhost postfix/smtp[9168]: 198B01A1348: to=<sales@example.com>, relay=[]:10024, delay=12, delays=0.22/0.01/0/12, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=05323-12, from MTA([]:10025): 250 2.0.0 Ok: queued as D2B411A1347)
Oct 30 20:04:45 localhost postfix/qmgr[9149]: 198B01A1348: removed
Oct 30 20:04:45 localhost postfix/smtp[9155]: D2B411A1347: to=<sales@example.com>, relay=none, delay=0.07, delays=0.07/0/0/0, dsn=5.4.6, status=bounced (mail for mail.example.com loops back to myself)
Oct 30 20:04:45 localhost postfix/cleanup[9158]: F1FC41A1348: message-id=<20121030143445.F1FC41A1348@server.example.com>
please help !!

Last edited by magicalshashank31; 30th October 2012 at 11:44.
Reply With Quote
Sponsored Links
Old 1st November 2012, 09:06
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

Please add mail.example.com to the mydestination line in /etc/postfix/main.cf and restart Postfix.
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendig mail Error fisherofer Installation/Configuration 12 30th November 2011 08:56
Postfix/courier/Centos 6 cant send email to external email servers maxtorzito Installation/Configuration 14 7th October 2011 11:56
SquirrelMail login not working glenneh Installation/Configuration 13 9th April 2011 21:01
problem with mail server setup kentor HOWTO-Related Questions 27 16th July 2009 16:22
Postfix + postfixadmin = SMTP errors... Rashef Server Operation 4 25th June 2009 17:12

All times are GMT +2. The time now is 12:54.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.