>Wietse wrote:
>> I forgot about authentication.
>>
>>     relayhost = [smtp.newsguy.com]:587
>>
>> See http://www.postfix.org/SOHO_README.html for this and other 
>> information of interest.
>
>That doesn't seem to work yet at least not by itself but could also be
>seriuosly inept pilot error. But before I start posting logs
>and so on, I'm trying to get masquerading to help this work.  But must not
>be understanding the docu well enough 
>
>This page:
>  http://www.postfix.org/ADDRESS_REWRITING_README.html#masquerade
>says in part:

[...]

>Example:

>    /etc/postfix/main.cf:
>        masquerade_domains = foo.example.com example.com"
>
>I thought that might mean I could do:
>masquerade_domains = u0.local.lan newsguy.com
>
>But still get complaints from smarthost about u0.local.lan not recognized.
>
>I think I will try 
>  masquerade_domains = newsguy.com
>Might be more like what is expected to do.
>
>I'm still tinkering so should know soon.

That didn't do it either. The most significant log message below:

Aug 5 22:49:17 u0 postfix/smtp[18892]: CC02E182330:
to=<rea...@newsguy.com>, relay=smtp.newsguy.com[74.209.136.78]:587,
delay=5.4, delays=0.06/0.03/5.3/0.04, dsn=5.1.8, status=bounced (host
smtp.newsguy.com[74.209.136.78] said: 553 5.1.8
<rea...@u0.local.lan>... Domain of sender address rea...@u0.local.lan
does not exist (in reply to MAIL FROM command))

I'm not really sure what that last sentence is trying to tell me but I 
had hoped the masquerading would rewrite that to be rea...@newsguy.com.

Seems like what I need is to be able to make the righthand side say 
`newsguy.com' in both From: and the Sender info.

But perhaps I have something else in main.cf screwed up.

Included below:
-------------------
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no

smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated
defer_unauth_destination

masquerade_domains = newsguy.com

relayhost = [smtp.newsguy.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_passwords
smtp_sasl_security_options =
myhostname = u0.local.lan
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = u0.local.lan
mydestination = u0.local.lan, u0, localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 51200000
recipient_delimiter = 
inet_interfaces = all
inet_protocols = all
home_mailbox = mbox
------------------------

----

Reply via email to