Topic: Roundcube cannot send mail anymore after I removed "permit_mynetwork"
Hello guys, I have a server that needs to forbid local network requests of using postfix relay, so I decided that I should set up SASL for iRedmail.
As I modified "smtpd_relay_restrictions" to permit_sasl_auth, the Roundcube web interface cannot send mail anymore, which suggests that Roundcube was never configured to use SASL authentication when using local postfix relay.
So the problem is, how should I fix it? Please let me know if you have any idea, thanks in advance!
UPDATE: I realized that Roundcube actually uses the mail account logged in to AUTH. But somehow, removing permit_mynetworks would result in "Recipient address rejected: Access denied". But the recipient restrictions seems fine...?
Here:
---------
# Recipient restrictions
smtpd_recipient_restrictions =
check_policy_service inet:127.0.0.1:7777
permit_sasl_authenticated
permit_mynetworks
check_policy_service inet:127.0.0.1:12340
reject_unauth_destination
------------
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.