Re: mail "loop back to myself"

[ Available lists | Index of freebsd-questions | Month of Feb 1996 | Week of 14 Feb 1996 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Hinrich Eilts <eilts@late.e-technik.uni-erlangen.de>
Date
14 Feb 1996 04:38:56
Subject
Re: mail "loop back to myself"
Message-ID
199602141233.NAA04980@late5.e-technik.uni-erlangen.de


[ Hide this part ]
>
> What are we doing wrong here???!!! Mail from the net is received but
> returned by our server to the sender with this loops back on myself message.
>
> Anyone know how I can start ,debugging this?
>
If sendmail receives mail, it decides how to forward to what recipient
by interpreting the "To:" address. You can observe it by starting sendmail
with "-bt" and testing rulset 3,0 like:

sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> 3,0 user@localhost
[some lines deleted]
rewrite: ruleset 0 returns: $# local $: @ user
> 3,0 user@freebsd.org
[some lines deleted]
rewrite: ruleset 0 returns: $# smtp $@ freebsd . org . $: user < @ freebsd . or

After "$#" the mailer to forward is cited, "local" at first example, "smtp"
at secound.
If sendmail decide to use a remote-mailer like "smtp" and recognize this
will end up in sending to itself, famous "loop back to myself" appears.
The way sendmail decide to use "local" is reading its configuration file,
where lines like "Cwlocalhost" tell sendmail, "localhost" is local.
If your host is named "tribeca.ios.com" adding a line "Cw tribeca.ios.com"
should resolve the problem. Best to add any aliases, too.

Hinrich

--
Hinrich Eilts
Uni: eilts@late.e-technik.uni-erlangen.de | G i b D O S |
Priv.: eilts@tor.dialin.rrze.uni-erlangen.de | k e i n e |
http://late5.e-technik.uni-erlangen.de/user/eilts.html | C h a n c e ! |


Elapsed time: 0.098 seconds