554 5.7.1 Postfix
-
Hi
I have installed the postfix package on my pfsense box (version 2.1 beta). I have configure postfix, but when I try to send mail I get a 554 5.7.1 relay access denied. I have can't see what is wrong.
<main.cf>/usr/local/etc/postfix/main.cf
#main.cf
#Part of the Postfix package for pfSense
#Copyright (C) 2010 Erik Fonnesbeck
#Copyright (C) 2011 Marcello Coutinho
#All rights reserved.
#DO NOT EDIT THIS FILEmynetworks = /usr/local/etc/postfix/mynetwork_table
mynetworks_style = hostrelay_domains = mbco.nl
transport_maps = hash:/usr/local/etc/postfix/transport
local_recipient_maps =
relay_recipient_maps = hash:/usr/local/etc/postfix/relay_recipients
mydestination =
mynetworks_style = host
message_size_limit = 10240000
default_process_limit = 100
disable_vrfy_command = yes
strict_rfc821_envelopes = yes#Just reject after helo,sender,client,recipient tests
smtpd_delay_reject = yesDon't talk to mail systems that don't know their own hostname.
smtpd_helo_required = yes
smtpd_helo_restrictions =smtpd_sender_restrictions = reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_unauth_pipelining,
reject_multi_recipient_bounce,
permitAllow connections from specified local clients and strong check everybody else.
smtpd_client_restrictions = permit_mynetworks,
reject_unauth_destination,
check_client_access pcre:/usr/local/etc/postfix/cal_pcre,
check_client_access cidr:/usr/local/etc/postfix/cal_cidr,
reject_unknown_client_hostname,
reject_unauth_pipelining,
reject_multi_recipient_bounce,
permitsmtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination,
reject_unauth_pipelining,
check_client_access pcre:/usr/local/etc/postfix/cal_pcre,
check_client_access cidr:/usr/local/etc/postfix/cal_cidr,
check_sender_access hash:/usr/local/etc/postfix/sender_access,
reject_invalid_helo_hostname,
reject_non_fqdn_helo_hostname,
reject_unknown_recipient_domain,
reject_non_fqdn_recipient,
reject_multi_recipient_bounce,
reject_spf_invalid_sender,
permitspf_mark_only = yes
postscreen_access_list = permit_mynetworks,
cidr:/usr/local/etc/postfix/cal_cidr
postscreen_dnsbl_action= enforce
postscreen_blacklist_action= enforce
postscreen_dnsbl_sites=bl.spamcop.net
postscreen_dnsbl_threshold=1</main.cf><relay_recipients>/usr/local/etc/postfix/relay_recipients
@mbco.nl OK</relay_recipients>
The most settings are the default setting. I only have added my domain mbco.nl. I like to use pfsense as my firewall. I have a exchange 2010 as internal mail server.
Any help is welcome
Martijn
-
but when I try to send mail I get a 554 5.7.1 relay access denied. I have can't see what is wrong.
Which mail server sent you "relay access denied" - postfix on pfSense or one of its upstream servers?
-
Hi
It's the postfix server. I have send a mail form my work address to my private address.
<message from="" the="" ndr="" email="">pfsense.mbco.local #554 5.7.1 martijn@mbco.nl: Relay access denied ##/martijn@mbco.nl</message>
Martijn
-
Did you restart postfix after your adjustments to the configuration file? (I don't know if this is necessary and don't know enough about postfix to comment on the details of your configuration file.)