KevinFrance
25th June 2009, 15:01
I am trying to use this to route e-mails by two different routes dependent on the orginators domain.
Unfortunaltey, it does not aooear to read the table.
Below are copies of the main.cg and bysenderrelay files.
Can anyone advise how I might resolve this?
main.cf:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 550
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = maildrop
html_directory = /usr/share/doc/packages/postfix/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
#transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = MS-01-010
myorigin = northamptonshire.gov.uk
mydomain = dmz.northamptonshire.gov.uk
relay_domains =
relay_domains = AV-SMTP.dmz.northamptonshire.gov.uk, GC-SMTP.dmz.northamptonshire.gov.uk
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains = northamptonshire.gov.uk
mydestination = $myhostname, localhost.$mydomain
#mydestination = $myhostname, localhost.$mydomain $mydomain
defer_transports =
mynetworks = 192.168.233.0/28, 127.0.0.0/8, 10.32.239.28/32, 172.20.20.226, 172.20.20.227
mynetworks_style = subnet
disable_dns_lookups = yes
relayhost =
sender_dependent_relayhost_maps = hash:/etc/postfix/bysenderrelay
#relayhost = GC-SMTP.dmz.northamptonshire.gov.uk
mailbox_command =
mailbox_transport =
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
local_recipient_maps =
local_transport = local
bysenderrelay:
@northamptonshire.gcsx.gov.uk [GC-SMTP.dmz.northamptonshire.gov.uk]
@northamptonshire.gov.uk [AV-SMTP.dmz.northamptonshire.gov.uk]
Unfortunaltey, it does not aooear to read the table.
Below are copies of the main.cg and bysenderrelay files.
Can anyone advise how I might resolve this?
main.cf:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 550
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = maildrop
html_directory = /usr/share/doc/packages/postfix/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
#transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = MS-01-010
myorigin = northamptonshire.gov.uk
mydomain = dmz.northamptonshire.gov.uk
relay_domains =
relay_domains = AV-SMTP.dmz.northamptonshire.gov.uk, GC-SMTP.dmz.northamptonshire.gov.uk
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains = northamptonshire.gov.uk
mydestination = $myhostname, localhost.$mydomain
#mydestination = $myhostname, localhost.$mydomain $mydomain
defer_transports =
mynetworks = 192.168.233.0/28, 127.0.0.0/8, 10.32.239.28/32, 172.20.20.226, 172.20.20.227
mynetworks_style = subnet
disable_dns_lookups = yes
relayhost =
sender_dependent_relayhost_maps = hash:/etc/postfix/bysenderrelay
#relayhost = GC-SMTP.dmz.northamptonshire.gov.uk
mailbox_command =
mailbox_transport =
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
local_recipient_maps =
local_transport = local
bysenderrelay:
@northamptonshire.gcsx.gov.uk [GC-SMTP.dmz.northamptonshire.gov.uk]
@northamptonshire.gov.uk [AV-SMTP.dmz.northamptonshire.gov.uk]