

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
10 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] How to extract $USER ...| From | Sent On | Attachments |
|---|---|---|
| Truong Tan Son | Dec 20, 2007 5:37 pm | |
| Sam Varshavchik | Dec 20, 2007 6:17 pm | |
| Truong Tan Son | Dec 20, 2007 7:10 pm | |
| Leandro Mendes | Dec 21, 2007 12:33 pm | |
| mouss | Dec 26, 2007 5:17 pm | |
| Truong Tan Son | Dec 26, 2007 6:26 pm | |
| mouss | Dec 29, 2007 10:56 am | |
| Truong Tan Son | Dec 30, 2007 5:25 pm | |
| mouss | Dec 31, 2007 3:35 am | |
| Truong Tan Son | Jan 1, 2008 6:35 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [maildropl] How to extract $USER to embed to the loop in Maildropfilter ? | Actions... |
|---|---|---|
| From: | Truong Tan Son (son...@fcv.fujitsu.com) | |
| Date: | Dec 26, 2007 6:26:30 pm | |
| List: | net.sourceforge.lists.courier-maildrop | |
Dear mouss,
Your guidance is right.
Postfix automatically separates each recipient in header by
"maildrop_destination_recipient_limit" option.
Because my Postfix can not authenticate the sender when sender is an alias, so I
change to use maildropfilter to fordward
message at backend.
Please teach me if you have better solution to solve this problem.
**My scenario:
group@ .. = {user1@ .., user2@.., user3@..}; group@, user@.. are virtual
users.
If sender = group@.. , request authenticated username&password to allow sending.
else If recipient = group@.., then delivers message to user list {user1@..,
user2@.., user3@..}
#cat $HOME/group/Maildir/.forward user1@.. user2@.. user3@...
#cat /etc/maildroprc `test -f $HOME/$USER/Maildir/.forward` if ($RETURNCODE == 0) { str=`head -1 $HOME/$USER/Maildir/.forward` to "!$str" } else { to "$HOME/$USER/Maildir/" }
By using exclamation mark with "!" before list of user, I can deliver message to
all users in file.
But this solution is suitable for any users, it can't solve if list contains
more user.
Thanks you very much.
Truong Tan Son.
----- Original Message -----
From: "mouss" <mlis...@free.fr>
Cc: <cour...@lists.sourceforge.net>
Sent: Thursday, December 27, 2007 8:17 AM
Subject: Re: [maildropl] How to extract $USER to embed to the loop in
Maildropfilter ?
Truong Tan Son wrote:
I understand Sam Varshavchik wrote.
But my target that is "How to extract user in a string=user1 user2 user3 ..." to
embed to loop.
There is difficult to extract each of user with pattern match result and
external script to embed.
I see absolutely no reason why one would want to "extract users". mail is delivered to a single mailbox (maildrop is not an MTA). What problem are you trying to solve? As Sam said, you should not use TO & CC headers for routing. if you play with these, you are going to break a whole lot of things (and possibly annoy a lot of of us).
when running maildrop, make sure it gets one recipient at a time. with postfix, use:
maildrop_destination_recipient_limit = 1
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Courier-maildrop mailing list Cour...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/courier-maildrop







