View Single Post
  #8  
Old 18th November 2009, 16:22
filfish filfish is offline
Junior Member
 
Join Date: Feb 2009
Posts: 15
Thanks: 2
Thanked 2 Times in 1 Post
Default

Hi Rocky, Thanks

Below is my main.cf as requested, i've swapped out my actual domain name for 'anydomain.com' and my IP for '123.456.789.0'

I've noticed there is no reference in this file to a relay_recipients hash, i think this could be the problem!


Main.cf -->

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
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

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = mailgate.anydomain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = anydomain.com
mydestination =
relayhost =
mynetworks = 127.0.0.0/8, 123.456.789.0/24
message_size_limit = 20480000
mailbox_size_limit =
recipient_delimiter = +
inet_interfaces = all
local_transport = error:No local mail delivery
local_recipient_maps =
virtual_alias_maps = hash:/etc/postfix/virtual
check_recipient_access = hash:/etc/postfix/recv_access
transport_maps = hash:/etc/postfix/transport
relay_domains = hash:/etc/postfix/relay_domains
smtpd_helo_required = yes
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access, reject_non_fqdn_sender, reject_unknown_sender_domain
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination, check_policy_service inet:127.0.0.1:2525
smtpd_data_restrictions = reject_unauth_pipelining
header_checks = regexp:/etc/postfix/header_checks
__________________
"Necessity, who is the mother of invention." Plato, The Republic
Greek author & philosopher in Athens (427 BC - 347 BC)

"Invention, who is the mother of all necessity." Filfish
Reply With Quote