Sender domain must exist
I know that this is a question that asked many times, but I can solve
the problem alone. I have read the sendmail-manuels und FAQ and this
newsgroup but I still have the problem. I have tried to search for the
solving many hours (days).
If I send a mail from my local mailer sendmail does not set the
correct emailadress, evrytime there is an error like this:
----- The following addresses had permanent fatal errors -----
<a.muschkat [at] muschkat.de>
(reason: 553 5.1.8 <root [at] dsl-router.muschkat.local>... Domain of
sender address root [at] dsl-router.muschkat.local does not exist)
Here my m4 file:
divert(0)dnl
VERSIONID(` [at] (#)Setup for SuSE Linux 8.12.3-0.4 (SuSE Linux)
2002/01/14')
OSTYPE(`linux')dnl
DOMAIN(`generic')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`accept_unqualified_senders')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`nouucp',`reject')dnl
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
FEATURE(`local_procmail')dnl
define(`confSERVICE_SWITCH_FILE',`/etc/mail/service-nodns.sw itch')dnl
FEATURE(`virtusertable', `hash /etc/mail/virtusertable')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl
define(`confUSERDB_SPEC',`/etc/mail/userdb.db')dnl
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl
define(`confCON_EXPENSIVE',`true')dnl
define(`confCHECKPOINT_INTERVAL',2)dnl
define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')dnl
define(`SMART_HOST',`xxx.xxx.xxx.xxx')dnl
define(`confFROM_HEADER',`muschkat.de')dnl
define(`confDEF_CHAR_SET',ISO-8859-1)dnl
define(`LOCAL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`LOCAL_MAILER_FLAGS',`SPfhn')dnl
define(`LOCAL_MAILER_ARGS',`procmail -Y -a $h -d $u')dnl
MASQUERADE_AS(muschkat.de)dnl
MASQUERADE_DOMAIN(dsl-router.muschkat.local)dnl
MAILER(local)dnl
MAILER(smtp)dnl
LOCAL_CONFIG
The file genericstable contains:
root mailserver [at] muschkat.de
It should masquerade dsl-router.muschkat.local to muschkat.de?
Whats wrong, please help.
Greeting,
Andreas Muschkat
Re: Sender domain must exist
> If I send a mail from my local mailer sendmail does not set the
> correct emailadress, evrytime there is an error like this:
>
> ----- The following addresses had permanent fatal errors -----
> <a.muschkat [at] muschkat.de>
> (reason: 553 5.1.8 <root [at] dsl-router.muschkat.local>... Domain of
> sender address root [at] dsl-router.muschkat.local does not exist)
>
> FEATURE(`accept_unresolvable_domains')dnl
> FEATURE(`accept_unqualified_senders')dnl
Turn these off. you have just posted too many details and these setting set
you up for some nasty abuse!
> define(`confSERVICE_SWITCH_FILE',`/etc/mail/service-nodns.sw itch')dnl
Interesting choice with DSL? why no DNS? Possibly an attempt to make this
work.
> FEATURE(`masquerade_entire_domain')dnl
> FEATURE(`masquerade_envelope')dnl
> MASQUERADE_AS(muschkat.de)dnl
> MASQUERADE_DOMAIN(dsl-router.muschkat.local)dnl
It is possible that you have misunderstood the role that the "submit.cf"
file plays in this. Check over the security information for sendmail, and
look at the differences between the clientmqueue, and the mqueue.
This should point you in the right direction, without giving it to you on a
silver plate ;-)
Viel Glück!
Re: Sender domain must exist
Andreas Muschkat schrieb:
> I know that this is a question that asked many times, but I can solve
> the problem alone. I have read the sendmail-manuels und FAQ and this
> newsgroup but I still have the problem. I have tried to search for
> the solving many hours (days).
>
> If I send a mail from my local mailer sendmail does not set the
> correct emailadress, evrytime there is an error like this:
>
> ----- The following addresses had permanent fatal errors -----
> <a.muschkat [at] muschkat.de>
> (reason: 553 5.1.8 <root [at] dsl-router.muschkat.local>... Domain of
> sender address root [at] dsl-router.muschkat.local does not exist)
>
> Here my m4 file:
>
> divert(0)dnl
> VERSIONID(` [at] (#)Setup for SuSE Linux 8.12.3-0.4 (SuSE Linux)
> 2002/01/14')
> OSTYPE(`linux')dnl
> DOMAIN(`generic')dnl
> FEATURE(`accept_unresolvable_domains')dnl
> FEATURE(`accept_unqualified_senders')dnl
> FEATURE(`use_cw_file')dnl
> FEATURE(`nouucp',`reject')dnl
> define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
> FEATURE(`local_procmail')dnl
> define(`confSERVICE_SWITCH_FILE',`/etc/mail/service-nodns.sw itch')dnl
> FEATURE(`virtusertable', `hash /etc/mail/virtusertable')dnl
> FEATURE(`masquerade_entire_domain')dnl
> FEATURE(`masquerade_envelope')dnl
> define(`confUSERDB_SPEC',`/etc/mail/userdb.db')dnl
> FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl
> define(`confCON_EXPENSIVE',`true')dnl
> define(`confCHECKPOINT_INTERVAL',2)dnl
> define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')dnl
> define(`SMART_HOST',`xxx.xxx.xxx.xxx')dnl
> define(`confFROM_HEADER',`muschkat.de')dnl
> define(`confDEF_CHAR_SET',ISO-8859-1)dnl
> define(`LOCAL_MAILER_PATH',`/usr/bin/procmail')dnl
> define(`LOCAL_MAILER_FLAGS',`SPfhn')dnl
> define(`LOCAL_MAILER_ARGS',`procmail -Y -a $h -d $u')dnl
> MASQUERADE_AS(muschkat.de)dnl
> MASQUERADE_DOMAIN(dsl-router.muschkat.local)dnl
> MAILER(local)dnl
> MAILER(smtp)dnl
> LOCAL_CONFIG
>
>
> The file genericstable contains:
> root mailserver [at] muschkat.de
>
>
> It should masquerade dsl-router.muschkat.local to muschkat.de?
>
> Whats wrong, please help.
>
> Greeting,
> Andreas Muschkat
Hi,
rewriting adresses by genericstable only works when
you put the domain to be rewritten in class {G} e.g.
in your .mc file:
GENERICS_DOMAIN (dsl-router.muschkat.local)dnl
btw. you find this (and much more) in the sendmail
sourcetree cf/README file.
bye.
Re: Sender domain must exist
Bimble Sprocket wrote:
>>define(`confSERVICE_SWITCH_FILE',`/etc/mail/service-nodns. switch')dnl
> Interesting choice with DSL? why no DNS? Possibly an attempt to make this
> work.
Cave SMART_HOSTem. ;-)
(And, for sake of completeness, if Andreas wanted to serve *incoming*
SMTP, I'ld expect him to use some real domain in hist host setup right
away, regardless of whether he's using some dynamic DNS service or
ordered a fixed IP from his ISP.)
Regards,
J. Bern