Jonas Simpson wrote on 5/25/21 12:44 PM:
> I have a user who has given out various "user-extens...@domain.com"
> address to different senders and is now receiving spam to one specific
> address, let's call it "user-extension...@domain.com".
> 
> The user no longer needs to receive any email at that address, so how
> can they or how can I have all messages sent to that address rejected
> prior to delivery? Ideally, can this be done through the GUI ...

You should be able to create a '.qmail-user-extension101' file in the
directory for that user's domain to specify special handling for the
problem address.

The contents of the file should be:

  | /home/vpopmail/bin/vdelivermail '' delete

(there should be no whitespace before the leading '|'; I indented it
here to make it easier to read). Make sure the file, like other '.qmail'
files, is owned by (and readable by) 'vpopmail:vchkpw'.

This won't reject mail, but it will silently delete any mail sent to it,
which is probably what you want. If you want to be sure messages to that
address never even get into your delivery queue, take a look at
spamdyke's documentation on rejecting recipients:

  https://www.spamdyke.org/documentation/README.html#REJECTING_RECIPIENTS

You'll probably want to test whichever solution you choose with test
addresses before putting the fix in place for your user.

I'm not familiar with the state of qmailtoaster GUIs currently, but if
you expect to need this frequently then it ought to be easy enough to
write a shell script to let you do it efficiently from the command-line.

Angus



---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com

Reply via email to