Re: [Exim] restricted virt domain with /dev/null for rest

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Steve Haslam
Data:  
Para: exim-users
Assunto: Re: [Exim] restricted virt domain with /dev/null for rest
On Sat, Jan 08, 2000 at 02:51:24PM -0800, Randy Bush wrote:
> the 'normal' domain here is psg.com, and we have many users <user>@psg.com.
> we also have a few domains such as bogus.com, for which we want mail for
> <user>@bogus.com delivered locally, but only for two of the local users.
>
> all the rest we want to send to /dev/null. there is no sense bouncing mail
> for <wrong-user>@bogus.com as it is all spam, and massive amounts of it.


bogus:
driver = aliasfile
file_transport = address_file
search_type = partial-lsearch
file = /etc/bogus.aliases

/etc/bogus.aliases:

user1: user1@???
user2: user2@???
*: /dev/null

Or, as someone pointed out, to bounce those bogus addresses totally,
have a director to match the addresses you want (such as the above
with the "*" entry removed from /etc/bogus.aliases) followed by:

bogus_reject: #director
driver = smartuser
fail_verify_recipient
transport = bogus_rejecterror

with:

bogus_rejecterror: #transport
driver = autoreply
return_message
text = "Prohibited by administrator"
to = "$return_path"
subject = "Message refused; returning to sender"
user = mail

If you're doing verify_recipient, though, people should never get the
autoreply. I guess they'll get it if they submit mail locally? Dunno.

HTH
SRH
-- 
Steve Haslam, Production Engineer, Excite UK     steve.haslam@???
                               i sit and stare at the gun pointed at my head
                                       and think about all the possibilities