Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

dbf2mysql parameter, WWWXXXAPC, wwwxxxAPC, How to unsubscrube from dategen spam, docmd.close 2585, WWWXXXDOCO, nu vot, dhcpd lease file "binding state", WWWXXXDOCO, how to setup procmail to process html2text

Links

XODOX
Impressum

#1: Sendmail and user accounts containing the domain -->

Posted on 2008-04-13 01:50:57 by fuogoitaliano

I have create user accounts under Linux as user@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@domain.com" instead of just "user"?

Report this message

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

Posted on 2008-04-13 03:10:48 by spam

<fuogoitaliano@gmail.com> wrote in message
news:73dab499-2180-400a-9d44-3b6109f0ec07@a23g2000hsc.google groups.com...
> I have create user accounts under Linux as user@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@domain.com" instead of just "user"?

feature virtusers

@example.com %1

Report this message

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

Posted on 2008-04-13 03:31:21 by fuogoitaliano

On Apr 12, 9:10=A0pm, "D. Stussy" <s...@bde-arc.ampr.org> wrote:
> <fuogoitali...@gmail.com> wrote in message
>
> news:73dab499-2180-400a-9d44-3b6109f0ec07@a23g2000hsc.google groups.com...
>
> > I have create user accounts under Linux as u...@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...@domain.com" instead of just "user"?
>
> feature virtusers
>
> @example.com =A0 =A0%1

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

Report this message

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

Posted on 2008-04-13 08:08:34 by Kari Hurtta

fuogoitaliano@gmail.com writes in comp.mail.sendmail:

> I have create user accounts under Linux as user@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@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 @domain to localdomain -mailer.


/ Kari Hurtta

Report this message

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

Posted on 2008-04-13 08:14:53 by Andrzej Filip

fuogoitaliano@gmail.com wrote:

> On Apr 12, 9:10 pm, "D. Stussy" <s...@bde-arc.ampr.org> wrote:
>> <fuogoitali...@gmail.com> wrote in message
>>
>> news:73dab499-2180-400a-9d44-3b6109f0ec07@a23g2000hsc.google groups.com...
>>
>> > I have create user accounts under Linux as u...@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...@domain.com" instead of just "user"?
>>
>> feature virtusers
>>
>> @example.com %1
>
> Didn't work. It's still delivering mail to "user" instead of
> "user@domain.com". Both accounts are active under Linux.

FEATURE(`virtusertable')

virtusertable entries:
user@example.com user\@example.com
@example.net %1\@example.net

backslash before @ should make sendmail "not see" @ in the address as
special character.

WARNING:
user@example.com *WILL NOT* get ~/.forward file processing

--
[pl>en: Andrew] Andrzej Adam Filip anfi@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

Report this message

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

Posted on 2008-04-13 08:19:22 by Andrzej Filip

Kari Hurtta <hurtta+comp.mail.sendmail@siilo.fmi.fi> wrote:

> fuogoitaliano@gmail.com writes in comp.mail.sendmail:
>
>> I have create user accounts under Linux as user@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@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 @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@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Lay on, MacDuff, and curs'd be him who first cries, "Hold, enough!".
-- Shakespeare

Report this message

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

Posted on 2008-04-13 08:53:13 by Kari Hurtta

Andrzej Adam Filip <anfi@onet.eu> writes
in comp.mail.sendmail:

> Kari Hurtta <hurtta+comp.mail.sendmail@siilo.fmi.fi> wrote:
>
> > fuogoitaliano@gmail.com writes in comp.mail.sendmail:
> >
> >> I have create user accounts under Linux as user@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@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 @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@localhost need to be delivered to 'user'
user@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@domain passed
to local -mailer.


> --
> [pl>en: Andrew] Andrzej Adam Filip anfi@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

Report this message

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

Posted on 2008-04-13 09:01:30 by spam

<fuogoitaliano@gmail.com> wrote in message
news:d26c25d4-e308-43b4-b1a3-285df657fd1f@l64g2000hse.google groups.com...
On Apr 12, 9:10 pm, "D. Stussy" <s...@bde-arc.ampr.org> wrote:
> <fuogoitali...@gmail.com> wrote in message
> news:73dab499-2180-400a-9d44-3b6109f0ec07@a23g2000hsc.google groups.com...
> > I have create user accounts under Linux as u...@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...@domain.com" instead of just "user"?
>
> feature virtusers
>
> @example.com %1

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

--------
Sorry, I misread. I thought you wanted local delivery.

Report this message

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

Posted on 2008-04-13 15:31:49 by Andrzej Filip

Kari Hurtta <hurtta+comp.mail.sendmail@siilo.fmi.fi> wrote:

> Andrzej Adam Filip <anfi@onet.eu> writes
> in comp.mail.sendmail:
>
>> Kari Hurtta <hurtta+comp.mail.sendmail@siilo.fmi.fi> wrote:
>>
>> > fuogoitaliano@gmail.com writes in comp.mail.sendmail:
>> >
>> >> I have create user accounts under Linux as user@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@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 @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@localhost need to be delivered to 'user'
> user@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@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@domain passed
> to local -mailer.


--
[pl>en: Andrew] Andrzej Adam Filip anfi@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Cure the disease and kill the patient.
-- Francis Bacon

Report this message

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

Posted on 2008-04-13 15:41:29 by Andrzej Filip

fuogoitaliano@gmail.com wrote:

> I have create user accounts under Linux as user@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@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@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Every why hath a wherefore.
-- William Shakespeare, "A Comedy of Errors"

Report this message

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

Posted on 2008-04-14 01:26:24 by fuogoitaliano

On Apr 13, 2:14=A0am, Andrzej Adam Filip <a...@onet.eu> wrote:
> fuogoitali...@gmail.com wrote:
> > On Apr 12, 9:10=A0pm, "D. Stussy" <s...@bde-arc.ampr.org> wrote:
> >> <fuogoitali...@gmail.com> wrote in message
>
> >>news:73dab499-2180-400a-9d44-3b6109f0ec07@a23g2000hsc.goog legroups.com..=
..
>
> >> > I have create user accounts under Linux as u...@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...@domain.com" instead of just "user"?
>
> >> feature virtusers
>
> >> @example.com %1
>
> > Didn't work. It's still delivering mail to "user" instead of
> > "u...@domain.com". Both accounts are active under Linux.
>
> FEATURE(`virtusertable')
>
> virtusertable entries:
> u...@example.com user\@example.com
> @example.net %1\@example.net
>
> backslash before @ should make sendmail "not see" @ in the address as
> special character.
>
> WARNING:
> u...@example.com *WILL NOT* get ~/.forward file processing
>
> --
> [pl>en: Andrew] Andrzej Adam Filip a...@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.

Report this message

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

Posted on 2008-04-14 16:43:29 by umautone

On Apr 13, 9:41=A0am, Andrzej Adam Filip <a...@onet.eu> wrote:
> fuogoitali...@gmail.com wrote:
> > I have create user accounts under Linux as u...@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...@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...@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 '\@\ 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.

Report this message

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

Posted on 2008-04-14 20:12:52 by Andrzej Filip

umautone@gmail.com wrote:

> [...] the '\@\ 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@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_

Report this message

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

Posted on 2008-04-14 22:41:39 by Andrzej Filip

umautone@gmail.com wrote:

> [...] the '\@\ 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@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Nonsense. Space is blue and birds fly through it.
-- Heisenberg

Report this message