Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

help with smtp-auth (exim4)

178 views
Skip to first unread message

Brent Russell Langille

unread,
Apr 18, 2004, 1:00:09 AM4/18/04
to
i have fetchmail set up to contact my isp and grab my emails and dump
them to exim which then delivers them to a Maildir style directory. that
works great.

the problem is sending mail out through exim4 to my isp. my isp only
supports LOGIN auth. i have exim4 setup with the "smarthost" option. i
used the address of the smtp server of my isp as the smarthost. i edited
smtp_remote in the conf.d directory and i put my information in the
passwd.clients file. i also have my user name aliased to my isp email
address in the file /etc/email-addresses

the problem is i keep getting a "550 5.1.8 you are not allowed to send
mail". i know that i am because i can send mail through evolution
directly to the isp, but i want all my mail to go through exim4.

i believe that the problem is exim4 is not sending the authentication
information. how can i test this? can anyone see a set that i have
missed? any help would be appreciated.

thanks

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Brent Russell Langille

unread,
Apr 18, 2004, 4:50:07 AM4/18/04
to
after looking for a bit more, i found that you could set an option to
force an authentication with a host "host_require_auth=<my.isp>".
now the result of a ehlo call to the server gives this;

LOG: MAIN
<= blan...@korea.com U=root P=local S=247
brent@langille:/etc/exim4/conf.d/transport$ T: remote_smtp for
blan...@korea.com
Connecting to esmtp.korea.com [211.109.8.14]:25 ... connected
SMTP<< 220 esmtp006.korea.com ESMTP Terrace MailWatcher 4.0000.dddd
(for korea.com)
SMTP>> EHLO langille
SMTP<< 250-esmtp006.korea.com Pleased to meet you
250-SIZE 15728640
250-8BITMIME
250-HELP
250-PIPELINING
250-AUTH
250-AUTH=LOGIN
250 ENHANCEDSTATUSCODES
SMTP>> QUIT
LOG: MAIN
== blan...@korea.com R=smarthost T=remote_smtp defer (-42):
authentication required but server did not advertise AUTH support

you can see that it supports LOGIN so why does the exim4 tell me
otherwise?

Florian Ernst

unread,
Apr 18, 2004, 8:10:04 AM4/18/04
to
Hello Brent!

On Sun, Apr 18, 2004 at 01:33:57PM +0900, Brent Russell Langille wrote:
> the problem is sending mail out through exim4 to my isp. my isp only
> supports LOGIN auth. i have exim4 setup with the "smarthost" option. i
> used the address of the smtp server of my isp as the smarthost. i edited
> smtp_remote in the conf.d directory and i put my information in the
> passwd.clients file. i also have my user name aliased to my isp email
> address in the file /etc/email-addresses

Hmm, seeing this listing and also knowing your following post, just a
dumb question: have you actually regenerated you config after changing
the files in the conf.d directory?

exim4 generates a config by merging the data in the template file
/etc/exim4/exim4.conf.template or the ones in the /etc/exim4/conf.d
directory tree respectively and /etc/exim4/update-exim4.conf.conf to
the output file /var/lib/exim4/config.autogenerated, please see
man update-exim4.conf
for further reference.

Please also see /usr/share/doc/exim4/README.SMTP-AUTH for further
explanations about the process in general.

HTH,
Flo

signature.asc

S.D.A.

unread,
Apr 18, 2004, 11:10:09 AM4/18/04
to
On Sun, Apr 18, 2004 at 01:33:57PM +0900 or thereabouts, Brent Russell Langille wrote:
> i have fetchmail set up to contact my isp and grab my emails and dump
> them to exim which then delivers them to a Maildir style directory. that
> works great.
>
> the problem is sending mail out through exim4 to my isp. my isp only
> supports LOGIN auth. i have exim4 setup with the "smarthost" option. i
> used the address of the smtp server of my isp as the smarthost. i edited
> smtp_remote in the conf.d directory and i put my information in the
> passwd.clients file. i also have my user name aliased to my isp email
> address in the file /etc/email-addresses
>
> the problem is i keep getting a "550 5.1.8 you are not allowed to send
> mail". i know that i am because i can send mail through evolution
> directly to the isp, but i want all my mail to go through exim4.
>
> i believe that the problem is exim4 is not sending the authentication
> information. how can i test this? can anyone see a set that i have
> missed? any help would be appreciated.

It's been sometime since I set up my Exim3 for SMTP AUTH -- I believe you should
find out first what type of SMTP_AUTH your ISP supports. Usually one telnets to
their e-mail server, to see what their login stanza says. In my case it was
SMTP_AUTH PLAIN. This and the

I don't know if this helps much, I've only done this with Exim3. But Exim4
should use similar syntax. So in my 'exim.conf', I have the following;

Under Authentication Configuration Section

login:
driver = plaintext
public_name = LOGIN
client_send = ": login : password" ## appropriate p/login


Under Routers Configuration Section

smarthost:
driver = domainlist
transport = remote_smtp
route_list = "* ssmtp.bloor.is.net.cable.rogers.com
bydns_a"

/* I remember the config wouldn't work, without 'ssmtp' appended, at least
with my ISP) */

Cheers.

--
Steve
+++++++++++++++++++++++++++++++++++++++++++++
Sunday Apr 18 2004 10:41:01 AM EDT
+++++++++++++++++++++++++++++++++++++++++++++
Ratos não vomitam.

0 new messages