On 10/22/06, Ken Moffat <[EMAIL PROTECTED]> wrote:
On Mon, Oct 23, 2006 at 09:33:52AM +1000, Greg Schafer wrote:
>  Ken Moffat wrote:
>
> >  Any suggestions, please ?
>
> Use your ISP's mail server as a smarthost. It'll keep you sane.

 Translated into postfix, that is 'relayhost = ' ?  I've been doing
that for months, ever since the bounces from running my outgoing
mail server got too many.

I would have never gotten this figured out myself. It's from the Book
of Postfix (recommended by Archaic) which is excellent.

Set myorigin so that a domain name will be attached to outgoing
messages that lack one.

myorigin = $myhostname

And then the smarthost is definitely the way to go, as Greg says.

# Relay outgoing mail through isp
# [] means to cache the dns lookup, i.e. don't do it every time
relayhost = [my.isp.com]

I prefer to authenticate to my ISP. In fact, I don't think they'll
send my mail if I don't.

# smtp settings - for relaying
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
       noanonymous,
       noplaintext
smtp_sasl_tls_security_options = noanonymous

/etc/postfix/sasl_passwd contains my username and password for my ISP:

my.isp.com                myusername:mypassword

And, this is trickier to get going, but I like to encrypt the
connection for outgoing mail if I can.

# smtp settings
smtp_use_tls = yes
smtp_tls_key_file = /etc/postfix/certs/postfix_key.pem
smtp_tls_cert_file = /etc/postfix/certs/postfix_cert.pem
smtp_tls_CAfile = /etc/ssl/certs/cacert.pem
smtp_tls_CApath = /etc/ssl/certs
smtp_tls_loglevel = 1
smtp_tls_note_starttls_offer = yes

But, then you've gotta get your certificates all in a row.

HTH

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to