Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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".
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)
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.