CentOS 8.x Control Web panel Whitelist or Blacklist IP or email or domain in postfix
From Notes_Wiki
Revision as of 17:58, 15 May 2022 by Saurabh (talk | contribs) (Created page with "Home > CentOS > CentOS 8.x > CentOS 8.x email servers > CentOS 8.x Control Web panel > Whitelist or Blacklist IP or email or domain in postfix Normally logwatch emails might be sent to root@localhost and via /etc/aliases and combination of CentOS 8.x postfix send email through relay or smarthost with smtp authentication might get delivered to intend...")
Home > CentOS > CentOS 8.x > CentOS 8.x email servers > CentOS 8.x Control Web panel > Whitelist or Blacklist IP or email or domain in postfix
Normally logwatch emails might be sent to root@localhost and via /etc/aliases and combination of CentOS 8.x postfix send email through relay or smarthost with smtp authentication might get delivered to intended recipient. But the email server reject such emails due to:
Diagnostic-Code: smtp; 504 5.5.2 <root@localhost>: Sender address rejected: need fully-qualified address
To solve this
- We can try adding following in /etc/postfix/sender_whitelist
- root@localhost OK
- Re-hash the file for changes to take effect:
- cd /etc/postfix
- postmap sender_whitelist
- The above does not works. Hence, further had to edit /etc/postfix/main.cf and use correct values for
- myhostname = commonhosting.sbarjatiya.com
- myorigin = $myhostname
- Further, In a few cases fix outgoing email ID from <user> to <user>@<domain> due to use of email virtualhosting requiring full domain name while logging in.
- Whitelist sending email server IP in sender_whitelist and map using postmap as explained above
- Also whitelist sending email server IP in CSF firewall using:
- Login into CWP admin account
- Go to Security -> CSF Firewall
- Mention IP and comment near "Quick Allow" button. Then click "Quick Allow"
Refer:
- http://wiki.centos-webpanel.com/postfix-blacklist-domain-or-ip
- https://newbedev.com/how-to-fix-postfix-sender-address-rejected-need-fully-qualified-address-in-reply-to-rcpt-to-command
Home > CentOS > CentOS 8.x > CentOS 8.x email servers > CentOS 8.x Control Web panel > Whitelist or Blacklist IP or email or domain in postfix