Re: YASP (Yet Another Sendmail Problem)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Sa, den 17.12.2005 schrieb Steven W. Orr um 17:35:

> I just moved from my older dying box to new hardware. After the migration, I
> found that I could not send from my own machine. Reception worked but I could
> not send. Using the exact same sendmail.mc, it turns out that masquerading 
> seems to have somewhat broken.
> 
> Hi. I zoomed in further on what my problem is but I have no idea how to
> fix it. I placed a copy of my sendmail.mc at
> 
> http://steveo.syslang.net/sendmail.mc

Comments:

1) Cwsaturn localhost
Don't set class {w} content this way. There is local-host-names file for
these settings. Both settings aren't necessary as localhost as well your
hostname are class {w} automatically.

For testing:

$ echo '$=w' | /usr/lib/sendmail -bt

2) FEATURE(`nocanonify')
Why that? Looks like the culprit; please see cf/README for this.

3) Never ever place anything beyond the MAILER definitions unless it is
LOCAL_CONFIG or LOCAL_RULESETS. So move your milter and DAEMON_OPTIONS
lines up to where they belong.

> The relevant lines in my sendmail.mc are:
> 
> FEATURE(`always_add_domain')
> MASQUERADE_AS(`syslang.net')
> MASQUERADE_DOMAIN(`syslang.net')
>
> The problem is that masquerading is not happening on a send. If I send to
> foo then sendmail expands it to go to foo@xxxxxxxxxxxxxxxxxx instead of
> sending to foo@xxxxxxxxxxx
> 
> If I send *from* foo, then foo (by default) is sending from
> foo@xxxxxxxxxxxxxxxxxx instead of from foo@xxxxxxxxxxx

Hope you don't test as root.

> Does anyone have an idea for how I can fix this?

$ echo '$=M' | /usr/lib/sendmail -bt

Will print out those hosts/domains which will be masqueraded. Another
way to see what Sendmail thinks about itself is:

$ /usr/lib/sendmail -bt -d0.9 < /dev/null

Instead of masquerading (if only the Sendmail host itself is origin of
outgoing mail) you may specify:

define(`confDOMAIN_NAME', `syslang.net')dnl

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 17:48:35 up 12 days, 22:25, load average: 0.21, 0.21, 0.18 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux