[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: exim4 config (?)



Douglas Allan Tutty wrote:
On Sun, Jun 10, 2007 at 09:30:59PM +0100, William Pursell wrote:
I normally use icedove and pop my mail from gmail, and things
work fine.  When I tried to send mail using:

$ mail somebody@somewhere.com < file

The mail was returned to me with:
SMTP error from remote mail server after MAIL FROM:<me@myhost.localnet> SIZE=2522:
    host gmail-smtp.l.google.com [64.233.183.109]:
    530 5.5.1 Authentication Required d23sm9741312nfh

I was a bit surprised that mailx was trying to contact google,
so I looked through /etc/exim4 and didn't find any references
at all to google.  I then added my gmail account to
/etc/exim4/email-addresses and sent an email
using mailx to my google account.  After about 12 hours,
that mail has disappeared.  (ie, I haven't gotten a Mail delivery
failure, and I haven't received the email.)

I don't use gmail but my dial-up ISP requires SMTP auth over an
unencrypted connection.

You need your email address in /etc/email-addresses so that exim will
rewrite your from line correctly.

You need a correct line in /etc/exim4/passwd.client

I also needed to add a file to /etc/exim4/conf.d/main called 000_localmacros

which contains the line:

AUTH_CLIENT_ALLOW_NOTLS_PASSWORDS = TRUE

Without which, exim will not send a password since the connection is not
encrypted; the password goes out in the clear.

Good luck.

Thanks.  I realized that by having my google account in
/etc/email-addresses, any mail delivery failures will
go to gmail instead of /var/mail, so I've done the following:


I followed Anoton's suggestion to run dpkg-reconfigure,
added a line to /etc/exim4/passwd.client, and then sent
an email that has gone away.  (I expect to get a
mail delivery failure soon in /var/mail.)  I then
ran strace on "mail me@gmail.com < foo" (the complete wrong
approach to system administration, but
I figure it's best to use the tools you know...:), but
this was unenlightening.

I'm still confused as to why gmail is in the picture at
all when I run mailx.  I did set smtp.gmail as my smtp
smarthost when I ran dpkg-reconfigure, but the only
reference to gmail in /etc/exim4 is in
update-exim4.conf.conf (via grep -iRe 'gmail\|google' *)
Surely the only affect that
file has is on execution of dpkg-reconfigure, no?

Which exim4 config file is telling it to contact google
for smtp?


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


Reply to: