<HTML>
<HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
Would it be possible to use the GUI and just forward all mail for the user to "nobody" rather than going into the virtusertable?<font size="2">
<br />
<br />
<br /><b>---------- Original Message
-----------</b>
<br />
From: Michael Stauber <mstauber@blueonyx.it>
<br />
To: BlueOnyx General Mailing List <blueonyx@mail.blueonyx.it>
<br />
Sent: Thu, 20 Oct 2011 17:51:59 +0200
<br />
Subject: [BlueOnyx:08875] Re: forward email to /dev/null?
<br />
<br />> Hi Roy,
<br />>
<br />>
> How can we setup those mailboxes to dump any inbound email so we aren’t
<br />>
> cleaning out the mailbox periodically due to rejections, etc.?
<br />>
<br />>
Edit /etc/mail/virtusertable and find all aliasses related to that mailbox.
<br />>
<br />>
An example could look like this:
<br />>
<br />>
mstauber@5107rmail.smd.net mstauber
<br />>
<br />>
You could handle the situation in two possible ways by changing the username
<br />>
part:
<br />>
<br />>
Method a):
<br />>
mstauber@5107rmail.smd.net nobody
<br />>
<br />>
Method b):
<br />>
mstauber@5107rmail.smd.net error:nouser No such user here
<br />>
<br />>
Changing the username to "nobody" will accept the emails to the email
address
<br />>
in question. But in /etc/mail/aliasses "nobody" is mapped to
/dev/null. So the
<br />>
email will then be silently discarded.
<br />>
<br />>
Changing the username to "error:nouser No such user here" will
instead refuse
<br />>
to accept the email and the sender gets an error message, telling him "No
such
<br />>
user here". You could change the "No such user here" to something
else, but it
<br />>
should be a really, really brief description without much in the way of using
<br />>
any non-alphabetical characters.
<br />>
<br />>
Once you have edited /etc/mail/virtusertable run these two commands:
<br />>
<br />>
makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable
<br />>
/etc/init.d/sendmail restart
<br />>
<br />>
But be prepared that these changes are not permanent. If you use the GUI to
<br />>
update these VSites email settings, or if you use the GUI to edit this users
<br />>
email details, then these changes will get reverted back to what they were
<br />>
before.
<br />>
<br />>
--
<br />>
With best regards
<br />>
<br />>
Michael Stauber
<br />>
<br />>
_______________________________________________
<br />>
Blueonyx mailing list
<br />>
Blueonyx@mail.blueonyx.it
<br />>
<a target="_blank" href="http://mail.blueonyx.it/mailman/listinfo/blueonyx">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a>
<br /><b>------- End of Original Message
-------</b>
<br />
</font>
</BODY>
</HTML>