Hi
I am trying unsuccessfully to have a more permanent fix so I can receive emails from an invalid domain.
The message is '
Sender address rejected: Domain not found' in the postfix mail logs. Fair enough, there may be an A record or MX record problem there, but there is nothing I can do about this with the Sender at present.
Mail *will* come through from the invalid domain if I delete
Code:
reject_unknown_sender_domain
from the list at:
smtpd_recipient_restrictions in /etc/postfix/main.cf (see coded area below for full list).
I have added the Domain in question as an 'OK', both by name and by IP address, to:
/etc/postfix/recipient_access,
then used postmap to successfully create the database which appears as:
recipient_access.db
ie recipient_access (not recipient_access.db) has contents:
invalid-domain-name.com OK ; the space betw is a tab space
123.456.789.012 OK ; the space betw is a tab space
I suspect the failure is something to do with postmap and the recipient_access.db database file created by postmap, but just cannot work this out.
Running: postconf -d indicates that the hash format is the default database format
As indicated below,
Code:
check_recipient_access hash:/etc/postfix/recipient_access
is listed up front in
smtpd_recipient_restrictions
Postfix was restarted on all occassions
Everything above was done as root and permissions on the .db files are the same as other files in /etc/postfix
From
/etc/postfix/main.cf:
Code:
smtpd_sasl_auth_enable=yes
smtpd_helo_required = yes
disable_vrfy_command = yes
#smtpd_client_restrictions = check_client_access hash:/etc/postfix/client_access
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_access,
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_invalid_hostname,
reject_unauth_pipelining,
reject_unknown_sender_domain,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client dul.dnsbl.sorbs.net,
reject_rbl_client list.dsbl.org,
check_policy_service unix:/var/spool/postfix/postgrey/socket, permit
broken_sasl_auth_clients = yes
(you'll note I have #smtpd_client_restrictions =... blanked out. I tried using this to specify the invalid domain, but it did not work)
Any advice would be appreciated!
Compfused