Re: [Exim] prevent delivery via SMTP for a local domain

Pàgina inicial
Delete this message
Reply to this message
Autor: Gyan Mathur
Data:  
A: exim-users
Assumpte: Re: [Exim] prevent delivery via SMTP for a local domain
In antwoord op Martin Kaiser:

> I'm running exim 3.35 on FreeBSD. Before actually delivering mails into
> user mailboxes, I'd like to make sure they were changed by an alias file
> at least once. To do this, I made up the internal domain mailbox.lmtp,
> with my alias files looking like
>
> user1@???    mailboxName

>
> I set qualify_recipient = mailbox.lmtp to automatically append this
> domain to the mailboxName on the right side. mailbox.lmtp must be a
> local domain to have a director handle the mails.
>
> The director that initiates the actual delivery looks checks for the
> mailbox.lmtp domain:
>
> localUser:
> driver = smartuser
> domains = mailbox.lmtp
> transport = lmtpTransport
>
>
> With mailbox.lmtp beeing a local domain, anybody can telnet to the
> mailserver's smtp port and inject mails for <boxname@???>
> directly.
>
> Is there any way to prevent this? I thought of the global filter, but
> there's no way to check the recipient.


Perhaps

condition = "${if eq {$parent_domain}{domain.com}{1}{0}"

Gyan.