wKkaY
Verified User
it's pretty obvious that an exim3->exim4 convertor script was used to generate the configuration file for DA's exim setup. IMHO it didn't include some crucial options.
firstly, would be sender and recipient verification.
the way it is configured now, i could send mail from whatever envelope sender i want. with sender verification, it at least restricts me to send from valid domains.
recipient verification is another important feature that needs to be in. i don't understand why no one has raised this issue before. anyway, as it is now, exim will accept mail to *any* recipient for domains that it serves. what happens next, if the recipient doesn't exist, is that a bounce mail is generated and sent to the envelope sender.
a better solution would be to reject the mail at SMTP time, right after RCPT TO:. otherwise, you may end up with double bounces when the bounces are sent to spoofed senders.
original exim.conf
my proposed exim.conf
firstly, would be sender and recipient verification.
the way it is configured now, i could send mail from whatever envelope sender i want. with sender verification, it at least restricts me to send from valid domains.
recipient verification is another important feature that needs to be in. i don't understand why no one has raised this issue before. anyway, as it is now, exim will accept mail to *any* recipient for domains that it serves. what happens next, if the recipient doesn't exist, is that a bounce mail is generated and sent to the envelope sender.
a better solution would be to reject the mail at SMTP time, right after RCPT TO:. otherwise, you may end up with double bounces when the bounces are sent to spoofed senders.
original exim.conf
check_recipient:
# Exim 3 had no checking on -bs messages, so for compatibility
# we accept if the source is local SMTP (i.e. not over TCP/IP).
# We do this by testing for an empty sending host field.
accept hosts = :
accept domains = +local_domains
accept domains = +relay_domains
accept hosts = +relay_hosts
accept hosts = +auth_relay_hosts
endpass
message = authentication required
authenticated = *
deny message = relay not permitted
my proposed exim.conf
#!!# ACL that is used after the RCPT command
check_recipient:
# Exim 3 had no checking on -bs messages, so for compatibility
# we accept if the source is local SMTP (i.e. not over TCP/IP).
# We do this by testing for an empty sending host field.
accept hosts = :
# added by wKkaY
require verify = sender
accept domains = +local_domains
endpass
verify = recipient
accept domains = +relay_domains
accept hosts = +relay_hosts
accept hosts = +auth_relay_hosts
endpass
message = authentication required
authenticated = *
deny message = relay not permitted