LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-10-2012, 09:33 PM   #1
chengli
LQ Newbie
 
Registered: Jan 2012
Posts: 21

Rep: Reputation: Disabled
Smile Email bounced back


hi,

anybody have clue....

error message -->mail for wansern.local loops back to myself

see the log
Jan 11 11:23:56 mail dovecot: imap-login: Login: user=<sansan@wansern.local>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=8845, secured
Jan 11 11:23:56 mail dovecot: imap(sansan@wansern.local): Disconnected: Logged out bytes=117/1398
Jan 11 11:23:56 mail postfix/smtp[8842]: 72BB642557: to=<sansan@wansern.local>, relay=none, delay=0.03, delays=0.03/0/0/0, dsn=5.4.6, status=bounced (mail for wansern.local loops back to myself)
Jan 11 11:23:56 mail postfix/qmgr[8760]: 72BB642557: removed



[chengli@mail ~]# 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
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, mail.wansern.local
mydomain = wansern.local
myhostname = mail
mynetworks = 127.0.0.0/8, 10.0.0.0/24
myorigin = wansern.local
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
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_path = private/auth
smtpd_sasl_type = dovecot
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql-aliases.cf
virtual_gid_maps = static:501
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-users.cf
virtual_uid_maps = static:501



Besides that, i found that (virtual_mailbox_domains = mysql:/etc/postfix/mysql-domains.cf) unable to "postmap -q wansern.local mysql:/etc/postfix/mysql-domains.cf".


Any ideas ?
 
Old 01-10-2012, 09:55 PM   #2
siranjeevi
Member
 
Registered: May 2010
Location: India
Posts: 79

Rep: Reputation: 7
Hello,

What does your /etc/hosts file say.?..
 
Old 01-10-2012, 10:02 PM   #3
chengli
LQ Newbie
 
Registered: Jan 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Smile

hi,

127.0.0.1 localhost.localdomain localhost
::1 mail.wansern.local mail localhost6.localdomain6 localhost6
10.0.0.7 mail.wansern.local mail
 
Old 01-10-2012, 10:21 PM   #4
siranjeevi
Member
 
Registered: May 2010
Location: India
Posts: 79

Rep: Reputation: 7
Can you comment out the lines having "wansern.local" and try again.?..
 
Old 01-10-2012, 10:45 PM   #5
chengli
LQ Newbie
 
Registered: Jan 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
hi Siranjeevi,

i try comment out the lines having "wansern.local". But the result still same.

Jan 11 12:39:32 mail postfix/smtp[10382]: 8EB8941361: to=<sansan@wansern.local>, relay=none, delay=0.04, delays=0.04/0/0/0, dsn=5.4.6, status=bounced (mail for wansern.local loops back to myself)


any idea ?

Thanks
 
Old 01-10-2012, 10:57 PM   #6
siranjeevi
Member
 
Registered: May 2010
Location: India
Posts: 79

Rep: Reputation: 7
Lets conclude if it is not a N/W thing, what does your ping o/p of wansern.local says?
 
Old 01-10-2012, 11:21 PM   #7
chengli
LQ Newbie
 
Registered: Jan 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Hi Siranjeevi,

PING wansern.local (10.0.0.4) 56(84) bytes of data.
64 bytes from svr01.wansern.local (10.0.0.4): icmp_seq=1 ttl=128 time=0.227 ms

[root@mail ~]# nslookup
> wansern.local
Server: 10.0.0.4
Address: 10.0.0.4#53

Name: wansern.local
Address: 10.0.0.4
> set query=mx
> wansern.local
Server: 10.0.0.4
Address: 10.0.0.4#53

wansern.local mail exchanger = 10 mail.wansern.local.


Thanks
 
Old 01-10-2012, 11:57 PM   #8
siranjeevi
Member
 
Registered: May 2010
Location: India
Posts: 79

Rep: Reputation: 7
Ok,

So your local IP is 10.0.0.7 and your wansern.local and mail.wansern.local IP is 10.0.0.4, ok it should be postfix config, may be you need to disable local delivery parameter in postfix config, wait may be some experts will help you.
 
Old 01-11-2012, 01:01 AM   #9
chengli
LQ Newbie
 
Registered: Jan 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
hi Siranjeevi,

mail.wansern.local= mail server : 10.0.0.7
wansern.local = Dns Server : 10.0.0.4


Thanks
 
Old 01-11-2012, 01:36 AM   #10
leslie_jones
Member
 
Registered: Sep 2011
Posts: 130

Rep: Reputation: Disabled
http://www.postfix.org/postconf.5.html

Quote:
best_mx_transport (default: empty)

Where the Postfix SMTP client should deliver mail when it detects a "mail loops back to myself" error condition. This happens when the local MTA is the best SMTP mail exchanger for a destination not listed in $mydestination, $inet_interfaces, $proxy_interfaces, $virtual_alias_domains, or $virtual_mailbox_domains. By default, the Postfix SMTP client returns such mail as undeliverable.

Specify, for example, "best_mx_transport = local" to pass the mail from the Postfix SMTP client to the local(8) delivery agent. You can specify any message delivery "transport" or "transport:nexthop" that is defined in the master.cf file. See the transport(5) manual page for the syntax and meaning of "transport" or "transport:nexthop".

However, this feature is expensive because it ties up a Postfix SMTP client process while the local(8) delivery agent is doing its work. It is more efficient (for Postfix) to list all hosted domains in a table or database.
 
Old 01-11-2012, 03:07 AM   #11
chengli
LQ Newbie
 
Registered: Jan 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
hi,

i try to add best_mx_transport = virtual into main.cf. The mailog look like fine but the mail was not go to virtual mail box new prefered (mail in cur).

Jan 11 16:56:39 mail postfix/cleanup[15893]: 225F742524: message-id=<13c57d86f4d55beb5de7c49741f9eb01.squirrel@mail>
Jan 11 16:56:39 mail postfix/qmgr[15850]: 225F742524: from=<chengli@wansern.local>, size=624, nrcpt=1 (queue active)
Jan 11 16:56:39 mail postfix/local[15855]: 225F742524: to=<chengli@wansern.local>, relay=local, delay=0.13, delays=0.11/0/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
Jan 11 16:56:39 mail postfix/qmgr[15850]: 225F742524: removed
Jan 11 16:56:39 mail dovecot: imap(chengli@wansern.local): Disconnected: Logged out bytes=578/454

whatever thanks for all you help!!

Thanks

Last edited by chengli; 01-11-2012 at 05:10 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Email bounced back alphatest Linux - Software 13 07-09-2013 09:42 AM
Sorting bounced back mail grob115 Linux - Server 3 09-08-2010 09:21 AM
Here is the error from the AOL sender whose messages have been bounced back from my maiwurd Linux - Software 2 01-26-2009 12:44 PM
handling bounced email mickeyren Linux - Software 0 03-07-2006 09:42 PM
Bounced back to login screen on Suse jcrb Linux - Newbie 2 03-07-2006 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration