relayhost when authentication is required

Peter King peter.king-H217xnMUJC0sA/PxXw9srA at public.gmane.org
Thu Aug 31 18:53:23 UTC 2006


On Thu, Aug 31, 2006 at 01:19:37PM -0400, Matt Price wrote:
 
> i run postfix on my home computers and use sendmail for all my maail
> programs (evolution, mutt, thunderbird, whatever).  both machines run ubuntu
> dapper and postfix 2.2.10.  
> 
> with our old ip i just added a 'relayhost' line in main.cf and my mail was
> sent out fine.  however our new evil isp (rogers/yahoo) requires
> authentication first.  so outgoing mail generates these log messages (sorry
> for thewrap!):
> 
> ug 31 12:46:07 localhost postfix/master[15806]: daemon started -- version
> 2.2.10, configuration /etc/postfix
> Aug 31 12:46:50 localhost postfix/pickup[15809]: 8522440409E: uid=1000
> from=<matt.price-H217xnMUJC0sA/PxXw9srA at public.gmane.org>
> Aug 31 12:46:50 localhost postfix/cleanup[15908]: 8522440409E:
> message-id=<1157042810.5232.3.camel at localhost>
> Aug 31 12:46:50 localhost postfix/qmgr[15810]: 8522440409E:
> from=<matt.price-H217xnMUJC0sA/PxXw9srA at public.gmane.org>, size=436, nrcpt=2 (queue active)
> Aug 31 12:46:51 localhost postfix/smtp[15910]: 8522440409E:
> to=<moptop99-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org>,
> relay=smtp-rog.mail.yahoo2.akadns.net[206.190.36.18], delay=1,
> status=bounced (host smtp-rog.mail.yahoo2.akadns.net[206.190.36.18] said:
> 530 authentication required - for help go to
> http://help.yahoo.com/help/us/mail/pop/pop-11.html (in reply to MAIL FROM
> command))
> 
> 
> i assume i need some mechanism for sending out my password to their server,
> but don't know how to do it.  does anyone have this setup or something
> similar working?

You need to set up the smtp_sasl security system, which will
authenticate you to rogers/yahoo by using a hashed database of
passwords. This is a pretty regularly asked question, and there
is lots of documentation on how to do it at the postfix home page.
It's straightforward. You *do* need the relay_host line. If it
helps, here's my main.cf:
==================================================================
myhostname = XXXXXX
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = XXXXX, localhost.localdomain,
localhost
relayhost = smtp.broadband.rogers.com
smtp_sasl_auth_enable = yes
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter =
inet_interfaces = all
notify_classes = bounce, delay, policy, protocol, resource, software
===================================================================
I run postfix on both debian sid and gentoo, and this setup works
flawlessly. I assume ubuntu, which is based on sid, will likewise
behave itself.

Hope it works!

-- 
Peter King			 	peter.king-H217xnMUJC0sA/PxXw9srA at public.gmane.org
Department of Philosophy
215 Huron Street
The University of Toronto		    (416)-978-4951 ofc
Toronto, ON  M5S 1A2
       CANADA

http://individual.utoronto.ca/pking/

=========================================================================
GPG keyID 0x7587EC42 (2B14 A355 46BC 2A16 D0BC  36F5 1FE6 D32A 7587 EC42)
gpg --keyserver pgp.mit.edu --recv-keys 7587EC42
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://gtalug.org/pipermail/legacy/attachments/20060831/3b245152/attachment.sig>


More information about the Legacy mailing list