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

Top Page
Delete this message
Reply to this message
Author: Nico Erfurth
Date:  
To: Martin Kaiser, exim-users
Subject: Re: [Exim] prevent delivery via SMTP for a local domain
Martin Kaiser wrote:
> Hi everybody,
>
> I suppose my problem might be somewhat confusing. Anyway, I hope you
> point me in the right direction.
>
> 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.
>
> Any ideas?


Maybe a verify_only director/router that rejects mails to this domain
could do the job.

ciao