Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Relay / Masquerade confusion

1 view
Skip to first unread message

Chris

unread,
Nov 4, 2009, 2:52:41 PM11/4/09
to
Hi Folks,

I am running sendmail 8.14 with dbmail for POP. I have a few
questions. Here are some behaviors that I would like to change but I
can't figure out how to do it:

1.Mail received for x...@host.domain.com should be delivered to
x...@domain.com. I suspect that this is a masquerade problem. Please
notice the included "sendmail -bt" output showing that apparently no
masquerading is happening. Probably MasqSMTP should return
x...@domain.com, if I have done what I want to do.

2.Only a subset of my users should by relayed through MAILER(dbmail-
lmtp). In particular, root, postmaster, abuse, bounce, and so on
should not be. In fact, only users that are using dbmail POP should
be relayed and xyz in not such a user, so I would like to be able to
list the unqualified users. I have managed to relay everybody. I
don't know where to look for this, although there are lots of choices
like userdb, access, mailertable.

Can anybody help me out?

Thanks,

Chris.


sendmail -bt
> /parse xyz@localhost
Parsing envelope recipient address
canonify input: xyz @ localhost
Canonify2 input: xyz < @ localhost >
Canonify2 returns: xyz < @ host . domain . com . >
canonify returns: xyz < @ host . domain . com . >
parse input: xyz < @ host . domain . com . >
Parse0 input: xyz < @ host . domain . com . >
Parse0 returns: xyz < @ host . domain . com . >
ParseLocal input: xyz < @ host . domain . com . >
ParseLocal returns: xyz < @ host . domain . com . >
Parse1 input: xyz < @ host . domain . com . >
MailerToTriple input: < dbmail-lmtp : domain . com > xyz < @
host . domain . com . >
MailerToTriple returns: $# dbmail-lmtp $@ domain . com $: xyz < @
host . domain . com . >
Parse1 returns: $# dbmail-lmtp $@ domain . com $: xyz < @
host . domain . com . >
parse returns: $# dbmail-lmtp $@ domain . com $: xyz < @
host . domain . com . >
2 input: xyz < @ host . domain . com . >
2 returns: xyz < @ host . domain . com . >
EnvToSMTP input: xyz < @ host . domain . com . >
PseudoToReal input: xyz < @ host . domain . com . >
PseudoToReal returns: xyz < @ host . domain . com . >
MasqSMTP input: xyz < @ host . domain . com . >
MasqSMTP returns: xyz < @ host . domain . com . >
EnvToSMTP returns: xyz < @ host . domain . com . >
final input: xyz < @ host . domain . com . >
final returns: xyz @ host . domain . com
mailer dbmail-lmtp, host domain.com, user x...@host.domain.com

ska

unread,
Nov 5, 2009, 4:06:14 AM11/5/09
to
Chris wrote:
> 1.Mail received for x...@host.domain.com should be delivered to
> x...@domain.com. I suspect that this is a masquerade problem. Please

It's incoming mail, right?
Set up a virtuser table mapping

x...@host.domain.com x...@domain.com

or, maybe, you can accept host.domain.com as local host name, too,
e.g. put it into /etc/mail/local-host-names

> 2.Only a subset of my users should by relayed through MAILER(dbmail-
> lmtp). In particular, root, postmaster, abuse, bounce, and so on
> should not be. In fact, only users that are using dbmail POP should
> be relayed and xyz in not such a user, so I would like to be able to
> list the unqualified users. I have managed to relay everybody. I
> don't know where to look for this, although there are lots of choices
> like userdb, access, mailertable.

Hmm, did you checked out LUSER_RELAY, see. http://www.sendmail.org/m4/domains.html

"The site that will handle lusers -- that is, apparently local names
that aren't local accounts or aliases. To specify a local user instead
of a site, set this to ``local:username''."

-ska

0 new messages