Page 1 of 1

SMTP authentication not required for localhost

Posted: Mon Sep 25, 2006 11:20 pm
by quacka
Hi,

I have a few application running on my webserver which uses smtp. The problem is my server requires authentication to send to email address outside local delivery. Anyway to disable this if the sender is from localhost?

Posted: Tue Sep 26, 2006 7:52 pm
by ScalixSupport
Your scalix server is listening on port 25 with the scalix smtp daemon. Localhost is listening on port 25. I.e. if, on the server you

telnet localhost 25

sendmail should respond. I suppose if you tell your web app to use localhost rather than server name you should be good to go.

Regards,
Don

Posted: Tue Sep 26, 2006 10:48 pm
by quacka
Sorry My mistake. The server is from a private ip address 192.168.0.2 and trying to send to scalix server 192.168.0.1.

Anyway to prevent authentication in this case?

Posted: Wed Sep 27, 2006 6:49 pm
by ScalixSupport
Try adding:

ORIGINATOR accept user@webserver.ext

To your smtpd.cfg. Be sure to restart smtpd.

Regards,
Don

Posted: Tue Oct 03, 2006 5:05 am
by quacka
You mean restart scalix service?
I don't have smtpd running, scalix suppose to handling smtpd is that right?

Some how my test email from users outside of the domain still not going through.

In smtpd.cfg I added:
ORGINATOR accept webmaster@getdigital.com.au

now when I try to send using no SMTP authentication I get this in the email log:
Oct 3 18:55:52 mail sendmail[4263]: k938tqqn004263: from=webmaster@getdigital.com.au, size=0, class=0, nrcpts=1, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Oct 3 18:55:53 mail sendmail[4268]: k938trcT004268: from=webmaster@getdigital.com.au, size=0, class=0, nrcpts=1, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Oct 3 18:55:53 mail sendmail[4273]: k938trNk004273: from=<webmaster@getdigital.com.au>, size=724, class=0, nrcpts=1, msgid=<000801c6e6ca$3c3f6e10$0801a8c0@QFL.MEL>, proto=ESMTP, relay=root@localhost
Oct 3 18:55:53 mail sendmail[4274]: k938tr4u004274: from=<webmaster@getdigital.com.au>, size=903, class=0, nrcpts=1, msgid=<000801c6e6ca$3c3f6e10$0801a8c0@QFL.MEL>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]

Oct 3 18:55:54 mail sendmail[4273]: k938trNk004273: to=<quacka6@hotmail.com>, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30724, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k938tr4u004274 Message accepted for delivery)
Oct 3 18:55:57 mail sendmail[4287]: k938tr4u004274: to=<quacka6@hotmail.com>, delay=00:00:04, xdelay=00:00:03, mailer=esmtp, pri=120903, relay=mx1.hotmail.com. [65.54.244.136], dsn=2.0.0, stat=Sent ( <000801c6e6ca$3c3f6e10$0801a8c0@QFL.MEL> Queued mail for delivery)


My query is this, in the line:
msgid=<000801c6e6ca$3c3f6e10$0801a8c0@QFL.MEL

QFL.MEL was my old FQDN and now I have changed it to a new one by using:
sxmodfqdn -o <old-name> -n <new-name>
and reinstalling SAC, RES and SWA

Is there something alse I meant to change?