Sendmail and user accounts containing the domain -->
Sendmail and user accounts containing the domain -->
am 13.04.2008 01:50:57 von 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"?
Re: Sendmail and user accounts containing the domain --> "user@domain.com"
am 13.04.2008 03:10:48 von spam
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
Re: Sendmail and user accounts containing the domain -->
am 13.04.2008 03:31:21 von fuogoitaliano
On Apr 12, 9:10=A0pm, "D. Stussy" wrote:
> 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.
Re: Sendmail and user accounts containing the domain --> "user@domain.com"
am 13.04.2008 08:08:34 von 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
Re: Sendmail and user accounts containing the domain --> "user@domain.com"
am 13.04.2008 08:14:53 von Andrzej Filip
fuogoitaliano@gmail.com wrote:
> On Apr 12, 9:10Â pm, "D. Stussy" wrote:
>> 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
Re: Sendmail and user accounts containing the domain --> "user@domain.com"
am 13.04.2008 08:19:22 von Andrzej Filip
Kari Hurtta 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
Re: Sendmail and user accounts containing the domain --> "user@domain.com"
am 13.04.2008 08:53:13 von Kari Hurtta
Andrzej Adam Filip writes
in comp.mail.sendmail:
> Kari Hurtta 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
Re: Sendmail and user accounts containing the domain --> "user@domain.com"
am 13.04.2008 09:01:30 von spam
wrote in message
news:d26c25d4-e308-43b4-b1a3-285df657fd1f@l64g2000hse.google groups.com...
On Apr 12, 9:10 pm, "D. Stussy" wrote:
> 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.
Re: Sendmail and user accounts containing the domain --> "user@domain.com"
am 13.04.2008 15:31:49 von Andrzej Filip
Kari Hurtta wrote:
> Andrzej Adam Filip writes
> in comp.mail.sendmail:
>
>> Kari Hurtta 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
Re: Sendmail and user accounts containing the domain --> "user@domain.com"
am 13.04.2008 15:41:29 von 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"
Re: Sendmail and user accounts containing the domain -->
am 14.04.2008 01:26:24 von fuogoitaliano
On Apr 13, 2:14=A0am, Andrzej Adam Filip wrote:
> fuogoitali...@gmail.com wrote:
> > On Apr 12, 9:10=A0pm, "D. Stussy" wrote:
> >> 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.
Re: Sendmail and user accounts containing the domain -->
am 14.04.2008 16:43:29 von umautone
On Apr 13, 9:41=A0am, Andrzej Adam Filip 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.
Re: Sendmail and user accounts containing the domain --> "user@domain.com"
am 14.04.2008 20:12:52 von 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_
Re: Sendmail and user accounts containing the domain --> "user@domain.com"
am 14.04.2008 22:41:39 von 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