sendmail smart host auth (solved)

sendmail smart host auth (solved)

Erez D erez0001 at gmail.com
Wed Sep 23 11:11:16 IDT 2009


ok. after seeing all references to this are for mc and not cf. i decided to
go with changing the mc file.

so here it is for posperity
i added the following lines to submit.mc:
======================
MASQUERADE_AS(doron.com)
FEATURE(`masquerade_envelope')dnl
define(`SMART_HOST',`out.bezeqint.net')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
====================================
and did:
cd /etc/mail
mkdir auth
echo 'AuthInfo:out.bezeqint.net "I:username" "P:password"' >
auth/client-info
cd auth
makemap hash client-info < client-info
cd /etc/mail
m4 submit.mc > submit.cf

now it works.

thanks for your help.
erez.



On Wed, Sep 23, 2009 at 8:07 AM, Oron Peled <oron at actcom.co.il> wrote:

> On Tuesday, 22 בSeptember 2009 12:35:50 Erez D wrote:
> > i am using bezeqint as my relay host.
> Me too.
>
> > i edit my submit.cf and added:
> > DSout.bezeqint.net
> 1. In the last 12 years I never touched a .cf file directly, always
>   maintained the .mc files and generated the .cf files via m4.
>   The default config provided by most distros (Fedora in my case)
>   is pretty sane, so there is very little to change.
>
> 2. I always customized sendmail.mc and not submit.mc, but maybe
>   it's because I'm using full sendmail as my mail-hub for my
>   internal network. Maybe I should switch to ms-smp for my
>   laptop as well.
>
> > however i get "Relaying denied", so i need to add authentication.
> > anybody knows how ?
> Just did this last month (sorry, long url):
>
> http://life-with-linux.blogspot.com/2009/08/howto-sendmail-authentication-
> against.html<http://life-with-linux.blogspot.com/2009/08/howto-sendmail-authentication-%0Aagainst.html>
>
> > please do not reply "sendmail is bad, or switch to other MTA".
> Sendmail is bad for some people. Switch the people ;-)
>
> --
> Oron Peled                                 Voice: +972-4-8228492
> oron at actcom.co.il                  http://users.actcom.co.il/~oron<http://users.actcom.co.il/%7Eoron>
> "Beware of bugs in the above code;
>  I have only proved it correct, not tried it."
>                              -- Donald E. Knuth
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20090923/3ea85e87/attachment-0001.html>


More information about the Linux-il mailing list