Вопрос

I have installed sendmail on my webserver. Sending and receiving emails does work, but when I use authentication on port 25 ( to avoid spam attacks), I can't receive emails anymore. All I get is an authentication error.

Is there a way to deactivate authentication in sendmail for incoming mail?

Edit 1 : In my sendmail configuration I have this lines:

DAEMON_OPTIONS(Name=ESMTP,Port=465,Modifiers=a')
DAEMON_OPTIONS(Name=STARTTLS,Port=587,Modifiers=a') 
DAEMON_OPTIONS(`Name=SMTP,Modifiers=a') 
Это было полезно?

Решение

You can not force authentication on port SMTP (25) if you want to receive messages from "strangers" (other SMTP hosts worldwide).

You should require authentication on SMTPS (465) and MSA (587) ports.

You may reject connection from DUL (dynamically allocated) IP addresses for unauthenticated connections and addresses listed by other DNSBL lists. Use FEATURE(enhdnsbl,...) with some DNSBL listing DUL ranges and FEATURE(delay_checks,...).


BTW You have missed s Modifier for SMTPS.

DAEMON_OPTIONS(`Name=SMTPS,Port=465,Modifiers=sa')
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top