Not able to mail when ClamAV, Amavis & Spamassassin are activated

Started by lexz, November 11, 2016, 01:51:36 PM

Previous topic - Next topic

lexz

Good afternoon!

I just started using CWP and everything is working fine.
The only problem I have is a problem with my mail. 
When I activate ClamAV, Amavis & Spamassassin I'm not able to send mails.

Does anyone have an idea what could be the problem?
Thank you!


Darkanoid

I am having the same issue. After a working setup. I will try it again this weekend and look in the logs deeper.

lexz


Darkanoid

Does your master.cf in /etc/postfix looks like this?

smtp      inet  n       -       n       -       -       smtpd
  -o content_filter=smtp-amavis:127.0.0.1:10024
  -o receive_override_options=no_address_mappings
#
## Enable SMTP on port 587 only for authenticated/TLS clients
submission inet n       -       n       -       -       smtpd
  -o smtpd_enforce_tls=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject

## Enable SMTP on port 465 only for authenticated/SSL clients
smtps     inet  n       -       n       -       -       smtpd
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject

Sandeep


Darkanoid

I did multiple times.
I had to manually uncomment things in the main.cf to make it work again.

Darkanoid

To add..

I always have problems with rebuilding postfix and amavis. Everytime I have permissions errors with logs.
Have to manually chmod and create the log path/directory for clamav.
After that most of the time it works good.

Occuring on hyper-v and openvz VMs with Centos panel

lexz

My problem is solved.

I removed "check_sender_access hash:/etc/postfix/sender_whitelist," from main.cf and the server is working!

Read this thread:
http://forum.centos-webpanel.com/e-mail/how-to-rebuild-postfix-mail-server/

Hope this solves your problem