Hello,
I've a postfix 2.5 server + amavisd-new + spamassassin + clamav working for 7 years.
This week one infected user PC lan send a lot of forged mail using her mail account. External PC user do the same with his user mail account.
postfix/smtpd[7912]: F3F9F82B4A: client=mail.wrcjobs.com[216.47.209.113], sasl_method=LOGIN, sasl_username=lmorales@mydomain.com <-- This is the spammer!!
How can I prevent authenticated users to send forged mail?
I mean, my users must send mail only from my domain.com and not other domains.
I've tried:
--main.cf:
smtpd_restriction_classes =
check_for_valid_sender
check_for_valid_sender =
check_sender_access hash:/etc/postfix/firmados
reject
smtpd_sender_restrictions = check_client_access hash:/etc/postfix/access
smtpd_recipient_restrictions =
# permit_mynetworks,
reject_unlisted_sender,
permit_sasl_authenticated,
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_address,
reject_non_fqdn_hostname,
reject_unauth_destination,
reject_rbl_client zen.spamhaus.org
smtpd_data_restrictions =
reject_unauth_pipelining
permit_mynetworks
permit_sasl_authenticated
check_client_access regexp:/etc/postfix/filter-catchall.regexp
.
.
.
--firmados:
mydomain.com OK
--access:
192.168.100.3 check_for_valid_sender
It's not working for me. Where I'm wrong? Any help would be appreciated.
Thank you
Raul
I've a postfix 2.5 server + amavisd-new + spamassassin + clamav working for 7 years.
This week one infected user PC lan send a lot of forged mail using her mail account. External PC user do the same with his user mail account.
postfix/smtpd[7912]: F3F9F82B4A: client=mail.wrcjobs.com[216.47.209.113], sasl_method=LOGIN, sasl_username=lmorales@mydomain.com <-- This is the spammer!!
How can I prevent authenticated users to send forged mail?
I mean, my users must send mail only from my domain.com and not other domains.
I've tried:
--main.cf:
smtpd_restriction_classes =
check_for_valid_sender
check_for_valid_sender =
check_sender_access hash:/etc/postfix/firmados
reject
smtpd_sender_restrictions = check_client_access hash:/etc/postfix/access
smtpd_recipient_restrictions =
# permit_mynetworks,
reject_unlisted_sender,
permit_sasl_authenticated,
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_address,
reject_non_fqdn_hostname,
reject_unauth_destination,
reject_rbl_client zen.spamhaus.org
smtpd_data_restrictions =
reject_unauth_pipelining
permit_mynetworks
permit_sasl_authenticated
check_client_access regexp:/etc/postfix/filter-catchall.regexp
.
.
.
--firmados:
mydomain.com OK
--access:
192.168.100.3 check_for_valid_sender
It's not working for me. Where I'm wrong? Any help would be appreciated.
Thank you
Raul