|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
"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] |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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] |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
> > 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? |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
"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] |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
> 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. |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
"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] |
|
![]() |
| Outils de la discussion | |
|
|