Sendmail and user accounts containing the domain -->

I have create user accounts under Linux as user [at] domain.com, which
creates their home directories just fine. I can retrieve mail for
these accounts just fine but Sendmail is refusing to find these
accounts. It seems to shop off the domain name by default and only
looks for accounts using the "user" part of the address.

How do I configure Sendmail to deliver mail to users named
"user [at] domain.com" instead of just "user"?
fuogoitaliano [ So, 13 April 2008 01:50 ] [ ID #1941799 ]

Re: Sendmail and user accounts containing the domain --> "user@domain.com"

<fuogoitaliano [at] gmail.com> wrote in message
news:73dab499-2180-400a-9d44-3b6109f0ec07 [at] a23g2000hsc.google groups.com...
> I have create user accounts under Linux as user [at] domain.com, which
> creates their home directories just fine. I can retrieve mail for
> these accounts just fine but Sendmail is refusing to find these
> accounts. It seems to shop off the domain name by default and only
> looks for accounts using the "user" part of the address.
>
> How do I configure Sendmail to deliver mail to users named
> "user [at] domain.com" instead of just "user"?

feature virtusers

[at] example.com %1
spam [ So, 13 April 2008 03:10 ] [ ID #1941800 ]

Re: Sendmail and user accounts containing the domain -->

On Apr 12, 9:10=A0pm, "D. Stussy" <s... [at] bde-arc.ampr.org> wrote:
> <fuogoitali... [at] gmail.com> wrote in message
>
> news:73dab499-2180-400a-9d44-3b6109f0ec07 [at] a23g2000hsc.google groups.com...
>
> > I have create user accounts under Linux as u... [at] domain.com, which
> > creates their home directories just fine. I can retrieve mail for
> > these accounts just fine but Sendmail is refusing to find these
> > accounts. It seems to shop off the domain name by default and only
> > looks for accounts using the "user" part of the address.
>
> > How do I configure Sendmail to deliver mail to users named
> > "u... [at] domain.com" instead of just "user"?
>
> feature virtusers
>
> [at] example.com =A0 =A0%1

Didn't work. It's still delivering mail to "user" instead of
"user [at] domain.com". Both accounts are active under Linux.
fuogoitaliano [ So, 13 April 2008 03:31 ] [ ID #1941801 ]

Re: Sendmail and user accounts containing the domain --> "user@domain.com"

fuogoitaliano [at] gmail.com writes in comp.mail.sendmail:

> I have create user accounts under Linux as user [at] domain.com, which
> creates their home directories just fine. I can retrieve mail for
> these accounts just fine but Sendmail is refusing to find these
> accounts. It seems to shop off the domain name by default and only
> looks for accounts using the "user" part of the address.
>
> How do I configure Sendmail to deliver mail to users named
> "user [at] domain.com" instead of just "user"?

Hmm. Create new mailer to sendmail config.


Mails to host are directed to

Mlocal, ....


on sendmail config.

That line referes to rulesets: S=EnvFromL/HdrFromL, R=EnvToL/HdrToL


These rulesets (specially EnvToL) strips domain part.

So you need new mailer

Mlocaldomain, ....

which refers to different rulesets.

And then on mailertable or on sendmaal.cf directly
direct mails for [at] domain to localdomain -mailer.


/ Kari Hurtta
Kari Hurtta [ So, 13 April 2008 08:08 ] [ ID #1941802 ]

Re: Sendmail and user accounts containing the domain --> "user@domain.com"

fuogoitaliano [at] gmail.com wrote:

> On Apr 12, 9:10 pm, "D. Stussy" <s... [at] bde-arc.ampr.org> wrote:
>> <fuogoitali... [at] gmail.com> wrote in message
>>
>> news:73dab499-2180-400a-9d44-3b6109f0ec07 [at] a23g2000hsc.google groups.com...
>>
>> > I have create user accounts under Linux as u... [at] domain.com, which
>> > creates their home directories just fine. I can retrieve mail for
>> > these accounts just fine but Sendmail is refusing to find these
>> > accounts. It seems to shop off the domain name by default and only
>> > looks for accounts using the "user" part of the address.
>>
>> > How do I configure Sendmail to deliver mail to users named
>> > "u... [at] domain.com" instead of just "user"?
>>
>> feature virtusers
>>
>> [at] example.com %1
>
> Didn't work. It's still delivering mail to "user" instead of
> "user [at] domain.com". Both accounts are active under Linux.

FEATURE(`virtusertable')

virtusertable entries:
user [at] example.com user\ [at] example.com
[at] example.net %1\ [at] example.net

backslash before [at] should make sendmail "not see" [at] in the address as
special character.

WARNING:
user [at] example.com *WILL NOT* get ~/.forward file processing

--
[pl>en: Andrew] Andrzej Adam Filip anfi [at] xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
It is a human characteristic to love little animals, especially if
they're attractive in some way.
-- McCoy, "The Trouble with Tribbles", stardate 4525.6
Andrzej Filip [ So, 13 April 2008 08:14 ] [ ID #1941803 ]

Re: Sendmail and user accounts containing the domain --> "user@domain.com"

Kari Hurtta <hurtta+comp.mail.sendmail [at] siilo.fmi.fi> wrote:

> fuogoitaliano [at] gmail.com writes in comp.mail.sendmail:
>
>> I have create user accounts under Linux as user [at] domain.com, which
>> creates their home directories just fine. I can retrieve mail for
>> these accounts just fine but Sendmail is refusing to find these
>> accounts. It seems to shop off the domain name by default and only
>> looks for accounts using the "user" part of the address.
>>
>> How do I configure Sendmail to deliver mail to users named
>> "user [at] domain.com" instead of just "user"?
>
> Hmm. Create new mailer to sendmail config.
>
>
> Mails to host are directed to
>
> Mlocal, ....
>
>
> on sendmail config.
>
> That line referes to rulesets: S=EnvFromL/HdrFromL, R=EnvToL/HdrToL
>
>
> These rulesets (specially EnvToL) strips domain part.
>
> So you need new mailer
>
> Mlocaldomain, ....
>
> which refers to different rulesets.

OK [ I would prefer "local-dom" name ]

> And then on mailertable or on sendmaal.cf directly
> direct mails for [at] domain to localdomain -mailer.

Or a small fix in cf/m4/proto.m4 to slect the new mailer
(localdomain/local-dom) for some/all local email domains.

P.S.
Standards sendmail.cf rules strip domain when selecting local mailer for
delivery even without help of "per mailer" rule sets.

--
[pl>en: Andrew] Andrzej Adam Filip anfi [at] xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Lay on, MacDuff, and curs'd be him who first cries, "Hold, enough!".
-- Shakespeare
Andrzej Filip [ So, 13 April 2008 08:19 ] [ ID #1941804 ]

Re: Sendmail and user accounts containing the domain --> "user@domain.com"

Andrzej Adam Filip <anfi [at] onet.eu> writes
in comp.mail.sendmail:

> Kari Hurtta <hurtta+comp.mail.sendmail [at] siilo.fmi.fi> wrote:
>
> > fuogoitaliano [at] gmail.com writes in comp.mail.sendmail:
> >
> >> I have create user accounts under Linux as user [at] domain.com, which
> >> creates their home directories just fine. I can retrieve mail for
> >> these accounts just fine but Sendmail is refusing to find these
> >> accounts. It seems to shop off the domain name by default and only
> >> looks for accounts using the "user" part of the address.
> >>
> >> How do I configure Sendmail to deliver mail to users named
> >> "user [at] domain.com" instead of just "user"?
> >
> > Hmm. Create new mailer to sendmail config.
> >
> >
> > Mails to host are directed to
> >
> > Mlocal, ....
> >
> >
> > on sendmail config.
> >
> > That line referes to rulesets: S=EnvFromL/HdrFromL, R=EnvToL/HdrToL
> >
> >
> > These rulesets (specially EnvToL) strips domain part.
> >
> > So you need new mailer
> >
> > Mlocaldomain, ....
> >
> > which refers to different rulesets.
>
> OK [ I would prefer "local-dom" name ]
>
> > And then on mailertable or on sendmaal.cf directly
> > direct mails for [at] domain to localdomain -mailer.
>
> Or a small fix in cf/m4/proto.m4 to slect the new mailer
> (localdomain/local-dom) for some/all local email domains.

That stripping is still needed for other domains which are
on $=w

user [at] localhost need to be delivered to 'user'
user [at] hostname need to be delivered to 'user'


>
> P.S.
> Standards sendmail.cf rules strip domain when selecting local mailer for
> delivery even without help of "per mailer" rule sets.

Yes.


It seems that that "per mailer" strip domain is only needed when
local -mailer is selected from mailertable.

And even when mailertable selects local mailer, CanonLocal is called.

But if I read it correctly, CanonLocal allows user [at] domain passed
to local -mailer.


> --
> [pl>en: Andrew] Andrzej Adam Filip anfi [at] xl.wp.pl
> Open-Sendmail: http://open-sendmail.sourceforge.net/
> Lay on, MacDuff, and curs'd be him who first cries, "Hold, enough!".
> -- Shakespeare

/ Kari Hurtta
Kari Hurtta [ So, 13 April 2008 08:53 ] [ ID #1941805 ]

Re: Sendmail and user accounts containing the domain --> "user@domain.com"

<fuogoitaliano [at] gmail.com> wrote in message
news:d26c25d4-e308-43b4-b1a3-285df657fd1f [at] l64g2000hse.google groups.com...
On Apr 12, 9:10 pm, "D. Stussy" <s... [at] bde-arc.ampr.org> wrote:
> <fuogoitali... [at] gmail.com> wrote in message
> news:73dab499-2180-400a-9d44-3b6109f0ec07 [at] a23g2000hsc.google groups.com...
> > I have create user accounts under Linux as u... [at] domain.com, which
> > creates their home directories just fine. I can retrieve mail for
> > these accounts just fine but Sendmail is refusing to find these
> > accounts. It seems to shop off the domain name by default and only
> > looks for accounts using the "user" part of the address.
>
> > How do I configure Sendmail to deliver mail to users named
> > "u... [at] domain.com" instead of just "user"?
>
> feature virtusers
>
> [at] example.com %1

Didn't work. It's still delivering mail to "user" instead of
"user [at] domain.com". Both accounts are active under Linux.

--------
Sorry, I misread. I thought you wanted local delivery.
spam [ So, 13 April 2008 09:01 ] [ ID #1941806 ]

Re: Sendmail and user accounts containing the domain --> "user@domain.com"

Kari Hurtta <hurtta+comp.mail.sendmail [at] siilo.fmi.fi> wrote:

> Andrzej Adam Filip <anfi [at] onet.eu> writes
> in comp.mail.sendmail:
>
>> Kari Hurtta <hurtta+comp.mail.sendmail [at] siilo.fmi.fi> wrote:
>>
>> > fuogoitaliano [at] gmail.com writes in comp.mail.sendmail:
>> >
>> >> I have create user accounts under Linux as user [at] domain.com, which
>> >> creates their home directories just fine. I can retrieve mail for
>> >> these accounts just fine but Sendmail is refusing to find these
>> >> accounts. It seems to shop off the domain name by default and only
>> >> looks for accounts using the "user" part of the address.
>> >>
>> >> How do I configure Sendmail to deliver mail to users named
>> >> "user [at] domain.com" instead of just "user"?
>> >
>> > Hmm. Create new mailer to sendmail config.
>> >
>> >
>> > Mails to host are directed to
>> >
>> > Mlocal, ....
>> >
>> >
>> > on sendmail config.
>> >
>> > That line referes to rulesets: S=EnvFromL/HdrFromL, R=EnvToL/HdrToL
>> >
>> >
>> > These rulesets (specially EnvToL) strips domain part.
>> >
>> > So you need new mailer
>> >
>> > Mlocaldomain, ....
>> >
>> > which refers to different rulesets.
>>
>> OK [ I would prefer "local-dom" name ]
>>
>> > And then on mailertable or on sendmaal.cf directly
>> > direct mails for [at] domain to localdomain -mailer.
>>
>> Or a small fix in cf/m4/proto.m4 to slect the new mailer
>> (localdomain/local-dom) for some/all local email domains.
>
> That stripping is still needed for other domains which are
> on $=w
>
> user [at] localhost need to be delivered to 'user'
> user [at] hostname need to be delivered to 'user'

I have created a *simple* hook (custom ruleset) called for local email
domains just before classic selection of local mailer via patch to
cf/m4/proto.m4.
It will allow to select local-dom mailer for *some* local domains.
Rule set 5 can be used to redirect non existing "user [at] example.com" to
"user" for such domains.

http://open-sendmail.cvs.sourceforge.net/*checkout*/open-sen dmail/open-sendmail/cf/m4/local-domain-routing.patch

>> P.S.
>> Standards sendmail.cf rules strip domain when selecting local mailer for
>> delivery even without help of "per mailer" rule sets.
>
> Yes.
>
> It seems that that "per mailer" strip domain is only needed when
> local -mailer is selected from mailertable.
>
> And even when mailertable selects local mailer, CanonLocal is called.
>
> But if I read it correctly, CanonLocal allows user [at] domain passed
> to local -mailer.


--
[pl>en: Andrew] Andrzej Adam Filip anfi [at] xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Cure the disease and kill the patient.
-- Francis Bacon
Andrzej Filip [ So, 13 April 2008 15:31 ] [ ID #1941807 ]

Re: Sendmail and user accounts containing the domain --> "user@domain.com"

fuogoitaliano [at] gmail.com wrote:

> I have create user accounts under Linux as user [at] domain.com, which
> creates their home directories just fine. I can retrieve mail for
> these accounts just fine but Sendmail is refusing to find these
> accounts. It seems to shop off the domain name by default and only
> looks for accounts using the "user" part of the address.
>
> How do I configure Sendmail to deliver mail to users named
> "user [at] domain.com" instead of just "user"?

Would you like to *test* solution for better support of
"local account with domain in name" than offered by
virtusertable "hack"?

e.g. the solution would support aliasing and ~/.forward files (I think).

The solution would require no recompilation of sendmail binaries, it
would require patching of one m4 file used to generate sendmail.cf
[cf/m4/proto.m4] and adding 2 or 3 new m4 files to files used to
generate sendmail.cf.

--
[pl>en: Andrew] Andrzej Adam Filip anfi [at] xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Every why hath a wherefore.
-- William Shakespeare, "A Comedy of Errors"
Andrzej Filip [ So, 13 April 2008 15:41 ] [ ID #1941808 ]

Re: Sendmail and user accounts containing the domain -->

On Apr 13, 2:14=A0am, Andrzej Adam Filip <a... [at] onet.eu> wrote:
> fuogoitali... [at] gmail.com wrote:
> > On Apr 12, 9:10=A0pm, "D. Stussy" <s... [at] bde-arc.ampr.org> wrote:
> >> <fuogoitali... [at] gmail.com> wrote in message
>
> >>news:73dab499-2180-400a-9d44-3b6109f0ec07 [at] a23g2000hsc.goog legroups.com..=
..
>
> >> > I have create user accounts under Linux as u... [at] domain.com, which
> >> > creates their home directories just fine. I can retrieve mail for
> >> > these accounts just fine but Sendmail is refusing to find these
> >> > accounts. It seems to shop off the domain name by default and only
> >> > looks for accounts using the "user" part of the address.
>
> >> > How do I configure Sendmail to deliver mail to users named
> >> > "u... [at] domain.com" instead of just "user"?
>
> >> feature virtusers
>
> >> [at] example.com %1
>
> > Didn't work. It's still delivering mail to "user" instead of
> > "u... [at] domain.com". Both accounts are active under Linux.
>
> FEATURE(`virtusertable')
>
> virtusertable entries:
> u... [at] example.com user\ [at] example.com
> [at] example.net %1\ [at] example.net
>
> backslash before [at] should make sendmail "not see" [at] in the address as
> special character.
>
> WARNING:
> u... [at] example.com *WILL NOT* get ~/.forward file processing
>
> --
> [pl>en: Andrew] Andrzej Adam Filip a... [at] xl.wp.pl
> Open-Sendmail:http://open-sendmail.sourceforge.net/
> It is a human characteristic to love little animals, especially if
> they're attractive in some way.
> =A0 -- McCoy, "The Trouble with Tribbles", stardate 4525.6- Hide quoted te=
xt -
>
> - Show quoted text -


Thank you! That solved the problem.
fuogoitaliano [ Mo, 14 April 2008 01:26 ] [ ID #1942473 ]

Re: Sendmail and user accounts containing the domain -->

On Apr 13, 9:41=A0am, Andrzej Adam Filip <a... [at] onet.eu> wrote:
> fuogoitali... [at] gmail.com wrote:
> > I have create user accounts under Linux as u... [at] domain.com, which
> > creates their home directories just fine. I can retrieve mail for
> > these accounts just fine but Sendmail is refusing to find these
> > accounts. It seems to shop off the domain name by default and only
> > looks for accounts using the "user" part of the address.
>
> > How do I configure Sendmail to deliver mail to users named
> > "u... [at] domain.com" instead of just "user"?
>
> Would you like to *test* solution for better support of
> "local account with domain in name" than offered by
> virtusertable "hack"?
>
> e.g. the solution would support aliasing and ~/.forward files (I think).
>
> The solution would require no recompilation of sendmail binaries, it
> would require patching of one m4 file used to generate sendmail.cf
> [cf/m4/proto.m4] and adding 2 or 3 new m4 files to files used to
> generate sendmail.cf.
>
> --
> [pl>en: Andrew] Andrzej Adam Filip a... [at] xl.wp.pl
> Open-Sendmail:http://open-sendmail.sourceforge.net/
> Every why hath a wherefore.
> =A0 -- William Shakespeare, "A Comedy of Errors"

I'd like to test your solution. However, the '\ [at] \ hack works fine in
delivering received email but I can't authenticate users sending
through SMTP. It still chops off the domain part when authenticating a
sending user.
umautone [ Mo, 14 April 2008 16:43 ] [ ID #1942485 ]

Re: Sendmail and user accounts containing the domain --> "user@domain.com"

umautone [at] gmail.com wrote:

> [...] the '\ [at] \ hack works fine in delivering received email but I
> can't authenticate users sending through SMTP. It still chops off the
> domain part when authenticating a sending user.

What have you configured in sasl2 configuration file for sendmail?
[ /usr/lib/sasl2/Sendmail.conf ? ]

--
[pl>en: Andrew] Andrzej Adam Filip anfi [at] xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
"If you are beginning to doubt what I am saying,
you are probably hallucinating."
-- The Firesign Theatre, _Everything you know is Wrong_
Andrzej Filip [ Mo, 14 April 2008 20:12 ] [ ID #1942490 ]

Re: Sendmail and user accounts containing the domain --> "user@domain.com"

umautone [at] gmail.com wrote:

> [...] the '\ [at] \ hack works fine in
> delivering received email but I can't authenticate users sending
> through SMTP. It still chops off the domain part when authenticating a
> sending user.

Have you tries to use sasldb for storing *separate* SMTP/POP/IMAP
passwords?
AFAIR sasldb makes sendmail require domain in SMTP AUTH.

URL(s):
http://groups.google.com/group/comp.mail.sendmail/msg/009e34 7baee78712

--
[pl>en: Andrew] Andrzej Adam Filip anfi [at] xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Nonsense. Space is blue and birds fly through it.
-- Heisenberg
Andrzej Filip [ Mo, 14 April 2008 22:41 ] [ ID #1942496 ]
Miscellaneous » comp.mail.sendmail » Sendmail and user accounts containing the domain -->

Vorheriges Thema: Spam Question
Nächstes Thema: Don't check domains in addresses