Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2007-07-08 09:11:48
Size: 924
Editor: atif@myveryown
Comment:
Revision 5 as of 2007-07-08 09:48:58
Size: 1709
Editor: atif@myveryown
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma page-filename DOC/versions/786606 #pragma page-filename DOC/versions/786608
Line 14: Line 14:
 add the following in your /etc/mail/virtusertable
&nbsp;add the following in your /etc/mail/virtusertable<<BR>>
Line 17: Line 16:
&nbsp;
Line 23: Line 20:
<<BR>>
=== &nbsp;local.m4 ===
local mailer is used by sendmail to deliver mails; however since we are not using the server to host any emails we don't need it.&nbsp; We can change it to pass all the mails to mm-handler.<<BR>>
{{{#!wiki caution
at the end of the file look for

Mlocal,&nbsp;&nbsp;&nbsp; ...

and replace it with

Mlocal,&nbsp;&nbsp;&nbsp; P=/etc/mail/mm-handler, F=rDFMhlqSu, S=EnvFromL, R=EnvToL/HdrToL,
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; T=DNS/RFC822/X-Unix, U=mailman:mail,
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; A=mm-handler $h -j $j -d $u
}}}


{{{#!wiki warning
Make sure that there is a tab after Mlocal, and not spaces.&nbsp; Otherwise it might not work
}}}

=== &nbsp;mm-handler ===
<<BR>>\\

Assumption

The following has been tested using the following configuration

  • Mailman 2.1.9
  • Sendmail 8.13.1
  • CentOS release 4.5 (Final)
  • Attached mm-handler (most noticeable change is writing logs to syslog)
  • You are going to be using the server only for mailing lists and not for delivery to local addresses

Method

For the purpose of this document the server domain shall be called mailman.foo.com and it is a 'A' name entry in the DNS. 

&nbsp;virtusertable

 add the following in your /etc/mail/virtusertable

this shall redirect any email to root on the server to be redirected to the email admin on the mail server.

&nbsp;local.m4

local mailer is used by sendmail to deliver mails; however since we are not using the server to host any emails we don't need it.  We can change it to pass all the mails to mm-handler.

at the end of the file look for

Mlocal,    ...

and replace it with

Mlocal,    P=/etc/mail/mm-handler, F=rDFMhlqSu, S=EnvFromL, R=EnvToL/HdrToL,              T=DNS/RFC822/X-Unix, U=mailman:mail,              A=mm-handler $h -j $j -d $u

Make sure that there is a tab after Mlocal, and not spaces.  Otherwise it might not work

&nbsp;mm-handler


\\


MailmanWiki: DOC/Integrating Mailman with Sendmail (last edited 2008-01-08 02:54:24 by tlembke)