PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > Local mailer issue
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

Local mailer issue

Réponse
 
LinkBack Outils de la discussion
Vieux 31/01/2007, 20h36   #1
grpprod
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Local mailer issue

Hello all,
I have compiled and use sendmail 8.13.8 under CentOS 3.4, with no
problem at all. What I would like to do is configure the local mailer
to deliver mails to $HOME/$USER/mbox instead of /var/mail/$USER.

Here is the relevant section of my sendmail.mc. I note, however, that
procmail is also called for delivery (although it is not specified in
sendmail.mc).

MAILER(local)dnl
MAILER(smtp)dnl

I would appreciate some to achieve this.

  Réponse avec citation
Vieux 31/01/2007, 21h09   #2
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Local mailer issue

"grpprod" <grpprod@gmail.com> writes:

> Hello all,
> I have compiled and use sendmail 8.13.8 under CentOS 3.4, with no
> problem at all. What I would like to do is configure the local mailer
> to deliver mails to $HOME/$USER/mbox instead of /var/mail/$USER.
>
> Here is the relevant section of my sendmail.mc. I note, however, that
> procmail is also called for delivery (although it is not specified in
> sendmail.mc).
>
> MAILER(local)dnl
> MAILER(smtp)dnl
>
> I would appreciate some to achieve this.


http://www.sendmail.org/faq/section4.html#4.3
How can I get sendmail to deliver local mail to $HOME/.mail instead of
into /usr/spool/mail (or /usr/mail)
Created: July 9, 1996 ; Last Update: January 7, 1999

http://anfi.homeunix.net/sendmail/B4UAsk-Sendmail.html
Before You Ask on news:comp.mail.sendmail

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Before You Ask: http://anfi.homeunix.net/sendmail/B4UAsk-Sendmail.html
http://anfi.homeunix.net/sendmail/ [orkut,linkedin,xing]
  Réponse avec citation
Vieux 31/01/2007, 21h32   #3
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Local mailer issue

Andrzej Adam Filip <anfi@onet.eu> writes:

> "grpprod" <grpprod@gmail.com> writes:
>
>> Hello all,
>> I have compiled and use sendmail 8.13.8 under CentOS 3.4, with no
>> problem at all. What I would like to do is configure the local mailer
>> to deliver mails to $HOME/$USER/mbox instead of /var/mail/$USER.
>>
>> Here is the relevant section of my sendmail.mc. I note, however, that
>> procmail is also called for delivery (although it is not specified in
>> sendmail.mc).
>>
>> MAILER(local)dnl
>> MAILER(smtp)dnl
>>
>> I would appreciate some to achieve this.

>
> http://www.sendmail.org/faq/section4.html#4.3
> How can I get sendmail to deliver local mail to $HOME/.mail instead of
> into /usr/spool/mail (or /usr/mail)
> Created: July 9, 1996 ; Last Update: January 7, 1999
>
> http://anfi.homeunix.net/sendmail/B4UAsk-Sendmail.html
> Before You Ask on news:comp.mail.sendmail


Extra hints:
1) most likely sendmail uses procmail as local mailer due to presence of
FEATURE(`local_procmail') in sendmail.mc. It makes sendmail use procmail
as local mailer.

2) You can change default destination (default mailbox location) in
procmail in /etc/procmailrc or by recompilation of the sources.

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Before You Ask: http://anfi.homeunix.net/sendmail/B4UAsk-Sendmail.html
http://anfi.homeunix.net/sendmail/ [orkut,linkedin,xing]
  Réponse avec citation
Vieux 01/02/2007, 00h47   #4
Kees Theunissen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Local mailer issue

Andrzej Adam Filip wrote:
> Andrzej Adam Filip <anfi@onet.eu> writes:
>
>>"grpprod" <grpprod@gmail.com> writes:
>>

[...]
>>>Here is the relevant section of my sendmail.mc. I note, however, that
>>>procmail is also called for delivery (although it is not specified in
>>>sendmail.mc).
>>>
>>>MAILER(local)dnl
>>>MAILER(smtp)dnl
>>>

[...]
> Extra hints:
> 1) most likely sendmail uses procmail as local mailer due to presence of
> FEATURE(`local_procmail') in sendmail.mc. It makes sendmail use procmail
> as local mailer.


That feature is likely included with cf/ostype/linux.m4


Regards,

Kees.

--
Kees Theunissen.

  Réponse avec citation
Vieux 01/02/2007, 07h15   #5
grpprod
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Local mailer issue

> > 1) most likely sendmail uses procmail as local mailer due to presence of
> > FEATURE(`local_procmail') in sendmail.mc. It makes sendmail use procmail
> > as local mailer.

>
> That feature is likely included with cf/ostype/linux.m4


Thank you for the replies,
the thing is I am totally unfamiliar with procmail, and obviously I am
not interested in using its advanced abilities (eg. for filtering
etc.). I just want to change the delivery location. So far I haven't
found anything ful in Google, so any good resource would be
appreciated.

Btw, and if I get it, the presence of 'OSTYPE(linux)dnl' enables the
use of procmail. So does this mean that the 'MAILER(local)dnl' line in
the main part of sendmail.mc is ignored somehow?


  Réponse avec citation
Vieux 01/02/2007, 09h18   #6
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Local mailer issue

"grpprod" <grpprod@gmail.com> writes:

>> > 1) most likely sendmail uses procmail as local mailer due to presence of
>> > FEATURE(`local_procmail') in sendmail.mc. It makes sendmail use procmail
>> > as local mailer.

>>
>> That feature is likely included with cf/ostype/linux.m4

>
> Thank you for the replies,
> the thing is I am totally unfamiliar with procmail, and obviously I am
> not interested in using its advanced abilities (eg. for filtering
> etc.). I just want to change the delivery location. So far I haven't
> found anything ful in Google, so any good resource would be
> appreciated.


http://groups.google.com/group/comp....65e230c1ed8f0f
news:39BD1078.DAAC2E96@anfi.freeshell.org
From: Andrzej Filip <a...@bigfoot.com>
Newsgroups: comp.mail.misc
Subject: Re: A procmail question...
Date: Mon, 11 Sep 2000 18:53:00 GMT
<quote>
I think it may be what you want

/etc/procmailrc :
#v+
:0c
* LOGNAME ?? ^[a-z0-9]+$
* ? test "/home/$LOGNAME" = "$HOME"
{
ORGMAIL="$HOME/mail"
DEFAULT="$ORGMAIL"
}
#v-

You may hack procmail code directly but
/etc/procmailrc is more flexible (IMHO).

HTH
</quote>

It should change default mailbox location after some "sanity checks" to
avoid changes for "special accounts" without "normal" home directory
such as (usually) news or uucp.

> Btw, and if I get it, the presence of 'OSTYPE(linux)dnl' enables the
> use of procmail. So does this mean that the 'MAILER(local)dnl' line in
> the main part of sendmail.mc is ignored somehow?


FEATURE(`local_procmail') makes sendmail use procmail in sendmail.cf
parts generated by MAILER(`local').

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Before You Ask: http://anfi.homeunix.net/sendmail/B4UAsk-Sendmail.html
http://anfi.homeunix.net/sendmail/ [orkut,linkedin,xing]
  Réponse avec citation
Vieux 01/02/2007, 11h15   #7
grpprod
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Local mailer issue

> It should change default mailbox location after some "sanity checks" to
> avoid changes for "special accounts" without "normal" home directory
> such as (usually) news or uucp.
>

It works like a charm!
One more thing: I usually sort my users in groups, so it may be the
case that something like this exist:

/home/group1/user1
/home/group2/user2

I would appreciate some on how to alter the sanity check to
accommodate this.

  Réponse avec citation
Vieux 01/02/2007, 11h52   #8
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Local mailer issue

"grpprod" <grpprod@gmail.com> writes:

>> It should change default mailbox location after some "sanity checks" to
>> avoid changes for "special accounts" without "normal" home directory
>> such as (usually) news or uucp.
>>

> It works like a charm!
> One more thing: I usually sort my users in groups, so it may be the
> case that something like this exist:
>
> /home/group1/user1
> /home/group2/user2
>
> I would appreciate some on how to alter the sanity check to
> accommodate this.


It may be what you want in your /etc/procmailrc

#v+
:0c
* LOGNAME ?? ^^[a-z0-9]+^^
* HOME ?? ^^/home/[a-z0-9]+/\/[a-z0-9]+^^
* MATCH ? test "$MATCH" = "$LOGNAME"
{
ORGMAIL="$HOME/mail"
DEFAULT="$ORGMAIL"
}
#v-

* procmail uses ^^ for matching both string start and string end.
* MATCH contains part of string right of \/


--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Before You Ask: http://anfi.homeunix.net/sendmail/B4UAsk-Sendmail.html
http://anfi.homeunix.net/sendmail/ [orkut,linkedin,xing]
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h57.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,19731 seconds with 16 queries