Danny Angus wrote:

I understand, but the fact remains that you can edit sendmail.cf as described and it *will* work.
If DH and DR are missing you can add them.

But I think I've found how to do it there
http://www.sendmail.org/m4/masquerading_relaying.html
So I will investigate. If I manage, I will probably send back a small
HOW-TO.

Yes please.

Here it goes.

- sendmail.mc. a diff -u of the changes applied to my sendmail.mc config file
- James sendmail.....txt : the worklog describing how to use it
- sendmail.cf.diff: a diff of the resulting changes

Cheers,

Jerome

James sendmail integration - Mandrake 9.0 notes.

Original document at [1]

Notes: Step 4 was not applied. So you will have to figure
       out what to do if you need it as well.

Sendmail on Mandrake 9.0 is built using m4. 
First install all your dependencies. Appart from sendmail 
you will need packages sendmail-cf and m4.

Packages installed on my machine:
- sendmail-cf-8.12.6-3.1mdk
- sendmail-8.12.6-3.1mdk
- m4-1.4ppre2-2mdk

Worklog:
-------

Step 1: identical.

Step 2 & 3: Due to the newer version of sendmail, sendmail configuration files are 
located in /etc/mail/

Add the following lines to sendmail.mc and rebuild 

Note: I had to modify the Makefile in order to make the installation work. 
Perhaps was I missing a package?
Here's the diff:

        [root@deesse cf]# diff Makefile.orig Makefile
        
26c26
< INSTALL=../../devtools/bin/install.sh
---
> INSTALL=install

Go to the correct directory:

        [root@deesse root]# cd /usr/share/sendmail-cf/cf

Find the original configuration used in your distribution.
This should be the one such that /etc/mail/sendmail.mc is identical
to /usr/share/sendmail-cf/cf/<smthg>.mc In my case, mandrake.mc.

Apply the changes (see diff below). Notes: 
1- there is apparently no way to append a prefix to the default 
   SMTP mailer flags. So I overwrite them all. This will change 
   the flags for all mailers instead of just the esmtp one as in [1].
2- be sure to place the _DEF_SMTP_MAILER_FLAGS before the MAILER 
   directive otherwise it has no effect.

        [root@deesse cf]# diff -u mandrake.mc.orig mandrake.mc
        
--- mandrake.mc.orig    2003-02-18 09:46:17.000000000 +0100
+++ mandrake.mc 2003-02-18 17:33:15.000000000 +0100
@@ -65,6 +65,11 @@
 dnl Uncomment next lines to hide identity of mail serve
 define(`confPRIVACY_FLAGS',`goaway,restrictqrun,restrictmailq')dnl
 dnl define(`confSMTP_LOGIN_MSG', `$j server ready at $b')dnl
+dnl Sendmail to use relay through James. Jerome 18/02/2003
+define(`LOCAL_RELAY', `esmtp:localhost')dnl
+define(`MAIL_HUB', `esmtp:localhost')dnl
+define(`SMART_HOST', `esmtp:localhost')dnl
+define(`_DEF_SMTP_MAILER_FLAGS', `kmDFMuX')dnl
 MAILER(smtp)dnl
 MAILER(procmail)dnl
 
rebuilds and reinstall your distrib
 
        [root@deesse cf]# make install-cf CF=mandrake



Links

[1]: http://james.apache.org/james_and_sendmail.html 
67a68,72
> dnl Sendmail to use relay through James. Jerome 18/02/2003
> define(`LOCAL_RELAY', `esmtp:localhost')dnl
> define(`MAIL_HUB', `esmtp:localhost')dnl
> define(`SMART_HOST', `esmtp:localhost')dnl
> define(`_DEF_SMTP_MAILER_FLAGS', `kmDFMuX')dnl
19,20c19,20
< ##### built by [EMAIL PROTECTED] on Tue Nov 26 13:52:02 MST 2002
< ##### in /usr/src/RPM/BUILD/sendmail-8.12.6/cf/cf
---
> ##### built by [EMAIL PROTECTED] on Tue Feb 18 13:57:40 CET 2003
> ##### in /usr/share/sendmail-cf/cf
72a73
> 
106c107
< DS
---
> DSesmtp:localhost
137a139,140
> # who I send unqualified names to (null means deliver locally)
> DResmtp:localhost
139,140c142,143
< 
< 
---
> # who gets all local email traffic ($R has precedence for unqualified names)
> DHesmtp:localhost
895a899,900
> R< > $+                       $: < $H > $1                    try hub
> R< > $+                       $: < $R > $1                    try relay
1783c1788
< Msmtp,                P=[IPC], F=mDFMuX, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, 
E=\r\n, L=990,
---
> Msmtp,                P=[IPC], F=kmDFMuX, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, 
>E=\r\n, L=990,
1786c1791
< Mesmtp,               P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, 
E=\r\n, L=990,
---
> Mesmtp,               P=[IPC], F=kmDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, 
>E=\r\n, L=990,
1789c1794
< Msmtp8,               P=[IPC], F=mDFMuX8, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, 
E=\r\n, L=990,
---
> Msmtp8,               P=[IPC], F=kmDFMuX8, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, 
>E=\r\n, L=990,
1792c1797
< Mdsmtp,               P=[IPC], F=mDFMuXa%, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, 
E=\r\n, L=990,
---
> Mdsmtp,               P=[IPC], F=kmDFMuXa%, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, 
>E=\r\n, L=990,
1795c1800
< Mrelay,               P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP, 
E=\r\n, L=2040,
---
> Mrelay,               P=[IPC], F=kmDFMuXa8, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP, 
>E=\r\n, L=2040,

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to