sendmail smart host auth

sendmail smart host auth

Erez D erez0001 at gmail.com
Tue Sep 22 14:06:26 IDT 2009


On Tue, Sep 22, 2009 at 1:39 PM, doron <doron at ofek.biz> wrote:

>
>  Hi Erez,
>
>
>  This is my conf file (I changed my user name and password):
>
i assume you mean /etc/mail/access

>
>  #
> AuthInfo:smile.net.il "U:smmsp" "I:doron" "P:abcd"
> # by default we allow relaying from localhost...
> localhost.localdomain           RELAY
> localhost                       RELAY
> # by default we allow relaying from localhost...
> Connect:localhost.localdomain           RELAY
> Connect:localhost                       RELAY
> Connect:127.0.0.1                       RELAY
> Connect:10.50.0.2                      RELAY
>
>
>  After restarting the sendmail , can you see way the relaying is denied in
> you'r log file (maillog) ?
>
>
>  - doron
>
>
> i copied the file from you,
changed the Authinfo line to:
AuthInfo:out.bezeqint.net "U:smmsp" "I:erez123" "P:1234"
and added
connect: 192.168.0.23 (which is my laptop)

here is my log

erez at mylap:~$ echo test|sendmail -v -s test erez at gmail.com

erez at gmail.com... Connecting to out.bezeqint.net. via relay...
220 out1.bezeqint.net ESMTP Postfix at your service - please...
>>> EHLO doron.com
250-out1.bezeqint.net
250-PIPELINING
250-SIZE 15240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
>>> MAIL From:<erez at doron.com> SIZE=5 AUTH=erez at doron.com
250 2.1.0 Ok
>>> RCPT To:<erez at gmail.com>
>>> DATA
554 5.7.1 <erez at gmail.com>: Relay access denied
554 5.5.1 Error: no valid recipients
>>> RSET
250 2.0.0 Ok
/home/erez/dead.letter... Saved message in /home/erez/dead.letter
Closing connection to out.bezeqint.net.
>>> QUIT
221 2.0.0 Bye



as you can see, sendmail doesn't try to authenticate at all
it should have added a line like:
AUTH PLAIN askfhadskh35l4kjtlekr45jlektjg
which should be replied with:
235 2.7.0 Authentication successful

( i entered the line manually after telneting to port 25 of
out.bezeqint.netand it worked)

>
>
>  Erez D wrote:
>
>
>
> On Tue, Sep 22, 2009 at 1:08 PM, doron <doron at ofek.biz> wrote:
>
>>
>>  Hi ,
>>
>>
>>  1. Add the line:
>>
>> AuthInfo:YOUR_ISP "U:smmsp" "I:USER_NAME" "P:PASSWORD"
>>
>>
>>  to your access file (/etc/mail/access)
>>
>>
>>  2. run make or makemap .
>>
>>
>>  - doron
>>
>>
>>
> I still get "Relaying Denied"
>
>
> thanks,
> erez.
>
>>
>>
>>  Erez D wrote:
>>
>>  hi
>>
>> i am using bezeqint as my relay host.
>>
>> i edit my submit.cf and added:
>> DSout.bezeqint.net
>>
>> however i get "Relaying denied", so i need to add authentication.
>>
>> anybody knows how ?
>>
>> please do not reply "sendmail is bad, or switch to other MTA".
>>
>> thanks,
>> erez.
>>
>>
>>   ------------------------------
>>
>> _______________________________________________
>> Linux-il mailing listLinux-il at cs.huji.ac.ilhttp://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
>>  Save a tree...please don't print this e-mail* *
>>
>
>
>
> --
>
> קורסי לינוקס וקוד פתוח - המסלולים החדשים<http://ofek.biz/index.php?page=Training>
>
> Office +972-3-9533603
> E-Mail doron at ofek.biz
> http://www.ofek.biz
>
> Please don't send me Word or PowerPoint attachments. See
> http://www.gnu.org/philosophy/no-word-attachments.html
>
> P Save a tree...please don't print this e-mail* *
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20090922/2d244faa/attachment.html>


More information about the Linux-il mailing list