|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Address rewriting not working
From: Brendan Grossman (brendan
grossman.id.au)
Date: Tue Jan 23 2007 - 22:26:44 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi everyone
I have an organisation that uses an internal company.local email address. We
need to have this rewritten to company.com.au when sending out.
I've followed the guide here:
http://www.postfix.org/ADDRESS_REWRITING_README.html#generic
In main.cf I have:
smtp_generic_maps = hash:/etc/postfix/generic
And in /etc/postfix/generic I have:
company.local
company.com.au
However it doesn't seem to be working. Emails from
company.local just pass
through.
Below is my config (most are SUSE defaults):
# postconf -n
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp:[localhost]:2526
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
disable_dns_lookups = no
header_checks = regexp:/etc/postfix/header_checks
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
local_recipient_maps =
local_transport = error:local mail delivery is disabled
mail_owner = postfix
mail_spool_directory = /var/mail
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 15728640
mydestination =
myhostname = mail.company.com.au
mynetworks = 192.168.115.0/24, 127.0.0.0/8
myorigin = company.com.au
newaliases_path = /usr/bin/newaliases
parent_domain_matches_subdomains = debug_peer_list smtpd_access_maps
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relay_domains = /etc/postfix/relay_domains
relay_recipient_maps =
sample_directory = /usr/share/doc/packages/postfix/samples
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_use_tls = no
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,
reject_non_fqdn_hostname, reject_invalid_hostname, permit
smtpd_recipient_restrictions = reject_unauth_pipelining,
reject_non_fqdn_recipient, permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination, permit
smtpd_sasl_auth_enable = no
smtpd_sender_restrictions = permit_sasl_authenticated,
permit_mynetworks, reject_non_fqdn_sender,
reject_unknown_sender_domain, permit
smtpd_use_tls = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
Regards
Brendan
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]