YASP (Yet Another Sendmail Problem)
Alexander Dalloz
ad+lists at uni-x.org
Sat Dec 17 17:10:59 UTC 2005
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 at saturn.syslang.net instead of
> sending to foo at syslang.net
>
> If I send *from* foo, then foo (by default) is sending from
> foo at saturn.syslang.net instead of from foo at syslang.net
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20051217/9bea8218/attachment-0001.sig>
More information about the fedora-list
mailing list