Hi,

I added the following line to main.cf but the server name was still
appended to an incomplete sender address.
remote_header_rewrite_domain =

When I changed the line to
remote_header_rewrite_domain = domain.invalid
it started working.

According to the documentation the entry with no actual domain name
should work. Or has something changed that I'm not aware of?

Below is my postfix version and postconf -n in case there's some other
setting that's effecting it.

Thanks
Guy

Postfix mail_version = 2.5.1

r...@aardwolf:/etc/postfix# postconf -n
2bounce_notice_recipient = [email protected]
anvil_rate_time_unit = 60s
bounce_notice_recipient = [email protected]
bounce_template_file = /etc/postfix/bounce.cf
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
cyrus_sasl_config_path = /etc/postfix/sasl/
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 30
delay_notice_recipient = [email protected]
error_notice_recipient = [email protected]
home_mailbox = .maildir/
html_directory = /usr/share/doc/postfix/html
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
maps_rbl_domains = sbl-xbl.spamhaus.org
message_size_limit = 31240000
mynetworks = 127.0.0.0/8, x.x.x.x, x.x.x.x, x.x.x.x
newaliases_path = /usr/bin/newaliases
proxy_read_maps = $local_recipient_maps $mydestination
$virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps
$relay_domains $canonical_maps $sender_canonical_maps
$recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
$virtual_alias_maps
queue_directory = /var/spool/postfix
rbl_reply_maps = hash:/etc/postfix/rbl_reply
readme_directory = /usr/share/doc/postfix-2.2.10/readme
remote_header_rewrite_domain = domain.invalid
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_client_connection_count_limit = 100
smtpd_client_connection_rate_limit = 100
smtpd_client_message_rate_limit = 100
smtpd_client_recipient_rate_limit = 50
smtpd_error_sleep_time = 1s
smtpd_hard_error_limit = 20
smtpd_recipient_restrictions = reject_non_fqdn_sender,
reject_unknown_sender_domain,   reject_unknown_recipient_domain,
 permit_mynetworks,      permit_sasl_authenticated,
reject_unauth_destination,       check_client_access
cidr:/etc/postfix/postfix-dnswl-permit,     reject_invalid_hostname,
     reject_rbl_client zen.spamhaus.org,     reject_rbl_client
bl.spamcop.net,       reject_rbl_client psbl.surriel.com,
reject_rhsbl_client zen.spamhaus.org,   reject_rhsbl_client
bl.spamcop.net,     check_policy_service inet:127.0.0.1:10031,
permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous
smtpd_soft_error_limit = 10
smtpd_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
smtpd_tls_cert_file = /etc/ssl/certs/imapd.pem
smtpd_tls_key_file = /etc/ssl/private/imapd.pem
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/virtual_transport_maps
unknown_local_recipient_reject_code = 550
virtual_alias_maps =
proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
proxy:mysql:/etc/postfix/mysql_virtual_catchall_maps.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_transport = smtp:host.domain.org


-- 
Don't just do something...sit there!

Reply via email to