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

Re: Re exim4, postfix problems - Thanks



On Fri, Sep 14, 2007 at 08:24:54PM +0300, Andrei Popescu wrote:
> "Thomas H. George" <lists@tomgeorge.info> wrote:
> 
> > Still posting from iceape.

No, now posting from mutt

> > 
> > I removed the server line; it was clearly a mistake.  I don't
> > remember entering such a line.  I believe it was automatically
> > generated or picked up from some previous configuration.
> 
> You mean the 'mydestination'. I think this is required to get local
> mail working. Here is mine:
> 
> mydestination = myhostname.homenet, localhost.homenet, localhost

Found I must leave out myhostname.homenet or mail sent from mutt to
mail@tomgeorge.info never leaves the LAN but is posted directly to
lists@tomgeorge.info, fetched by fetchmail and read by mutt.

On the other hand the localhost entries are necessary.  If missing mutt
never sees the messages fetched by fetchmail, they are left in a queue
somewhere.
> 
> That means that any mail to user@myhostname.homenet or user@localhost
> has to be delivered locally (as opposed to relaying it through the
> smarthost).
> 
.
.
.
> 
> * I think you need the package libsasl2-modules (in etch it's only a
> recommends but in unstable it's a depends of postfix)

I installed this package with no immediate effect

> 
> * in /etc/postfix/main.cf
> 

Next I used vi to insert the following lines in /etc/postfix/main.cf

> smtp_sasl_auth_enable = yes
> smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
> smtp_sasl_type = cyrus
> smtp_sasl_security_options = 
> 
> (Yes I know, the last option is left empty, but there was a bug, not
> sure if it's fixed ... maybe I should try)
> 
> * then you need to create a file /etc/postfix/sasl_passwd with something
> like:
> 
> [mail.server.com]	user:password
> 
> (the square brackets are not mandatory, but might prevent some problems)
> 

I created this file but in /etc/postfix/sasl/ as somewhere there is a
note that this is the Debian way.  With the brackets in fails, without
them it works.  Note that I have entered outgoing.verizon.net as the
relay host and so that is the entry for mail.server.com in
sasl_password.

> * run 'postmap /etc/postfix/sasl_passwd' and don't forget to
> chmod it 600 as you have the password in clear text.
> 
> Restart postfix and try again.

Thanks for your help Andrei, without it I might never have figured this
out.  I hope I have explained it simply now - Tom George

> 
> Regards,
> Andrei
> -- 
> If you can't explain it simply, you don't understand it well enough.
> (Albert Einstein)




Reply to: