Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

a few questions:new to postfix

2 views
Skip to first unread message

Littlefield, Tyler

unread,
Mar 14, 2013, 1:11:19 AM3/14/13
to
hello all:
I have a couple questions.
first, I have my postfix setup to receive mail and drop it in the user's
~/mail directory.
I'm trying to figure out if there's a way I can have both "virtual"
users and non virtual users.
For example, I'd like to set up a support address to handle tech support
issues for projects, and my girlfriend has been bugging me for an email
address for quite a while.
I'd also like to be able to use procmail on these.
Is there a way (short of just creating empty users) that I could do this
and still retain email per user?
Finally, I'm looking for some way to handle recycling mail. I personally
know to clean up my own mail folder by deleting stuff (we use Imap), but
the support system or my girlfriend probably wouldn't clean up those
messages.
Thanks,

--
Take care,
Ty
http://tds-solutions.net
The aspen project: a barebones light-weight mud engine:
http://code.google.com/p/aspenmud
He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave.

Ansgar Wiechers

unread,
Mar 14, 2013, 4:51:29 AM3/14/13
to
On 2013-03-13 Littlefield, Tyler wrote:
> first, I have my postfix setup to receive mail and drop it in the
> user's ~/mail directory.
> I'm trying to figure out if there's a way I can have both "virtual"
> users and non virtual users.

You can alias localparts of virtual domains or virtual mailbox domains
to local mailboxes via $virtual_alias_maps. See the [1] for more
details.

> I'd also like to be able to use procmail on these.

Procmail is designed for local delivery. It looks like you can (ab)use
it for virtual delivery as well [2], but I wouldn't recommend it.

Please describe the problem you're trying to solve instead of what you
perceive as the solution. What do you want procmail (or more generally
your mail delivery agent) to do?

> Is there a way (short of just creating empty users) that I could do
> this and still retain email per user?

What do you mean by "short of creating empty users"? You can create any
number of mailboxes and/or aliases. You can have any number of aliases
pointing to a mailbox. You cannot have a mailbox without a mailbox.

> Finally, I'm looking for some way to handle recycling mail. I
> personally know to clean up my own mail folder by deleting stuff (we
> use Imap), but the support system or my girlfriend probably wouldn't
> clean up those messages.

In one word: don't. Do NOT tamper with other people's personal
mailboxes. Ever. Set up mailbox quota if you want to restrict the amount
of mail your users can keep.

[1] http://www.postfix.org/ADDRESS_CLASS_README.html
[2] http://standish.home3.org/virtual-procmail

Regards
Ansgar Wiechers
--
"Abstractions save us time working, but they don't save us time learning."
--Joel Spolsky

Ansgar Wiechers

unread,
Mar 15, 2013, 4:56:48 AM3/15/13
to
Please keep this on-list. I'm not doing personal support for free.

On 2013-03-14 Littlefield, Tyler wrote:
> On 3/14/2013 2:51 AM, Ansgar Wiechers wrote:
>>On 2013-03-13 Littlefield, Tyler wrote:
>>> I'd also like to be able to use procmail on these.
>>
>> Procmail is designed for local delivery. It looks like you can
>> (ab)use it for virtual delivery as well [2], but I wouldn't recommend
>> it.
>>
>> Please describe the problem you're trying to solve instead of what
>> you perceive as the solution. What do you want procmail (or more
>> generally your mail delivery agent) to do?
>
> Right now, Procmail for me just filters out messages like I want. For
> example spam goes to the spam folder. I was trying to achieve the same
> result for virtual users.

If everyone will read mail locally on the server, Procmail will do. If
you're setting up an IMAP server I'd recommend using dovecot and do the
filtering with Sieve.

[...]
>>> Finally, I'm looking for some way to handle recycling mail. I
>>> personally know to clean up my own mail folder by deleting stuff (we
>>> use Imap), but the support system or my girlfriend probably wouldn't
>>> clean up those messages.
>>
>> In one word: don't. Do NOT tamper with other people's personal
>> mailboxes. Ever. Set up mailbox quota if you want to restrict the
>> amount of mail your users can keep.
>
> I understand this, but that forces them to delete. There's no harm in
> say, deleting items from the "trash" folder after it's 30 days old or
> something.

That is NOT your decision to make. I repeat: do NOT tamper with other
users' private mailboxes. You could get into a heap of legal trouble
othrwise.
0 new messages