On Fri, 12 Feb 1999 14:34:02 +0000, Chris Green wrote:
>> 2.nd problem:
>> Even if I fix that... I have 2 internet mail accounts (POP3),
>> and I'm subscribed to different mailinglists. So if mail is
>> sent to the mailinglist it MUST be sent from the account I've
>> subscribed from.
>> How do I implement some sort of per user database of mailinglists
>> and if To: line contains a mailinglist it should change From: line
>> differently AND(!) serialmail should send this mail thru different
>> SMTP server.
>>
>That sounds like the sort of problem that mutt's send-hook facility
>could handle for you. (mutt is an MUA)
Mutt also runs on OS/2 and Windows 95/98/NT ?? Don't think so,
plus his POP3 support is lousy. For terminal mode I prefer pine
over it, it is more intuitive :) and I'm already used to pine.
If it was just for the terminal, I would have used those evironment
variables that modify the From line.
BUT!!! Most 99.9% of the mail is processed by users on their workstations
that are running mostly Windows. The mailers are Outlook Express,
Netscape Communicator, PMMail and probably others.
I have this situation (use monospace font and LONG lines ;>):
-------------------------------------------------------------------
INTERNET dial-up LINUX server LAN WORKSTATIONS
pop3 account 1 <- serialmail <- Qmail 1.03 <- SMTP <- user1
pop3 account 1 -> fetchmail -> Qmail 1.03 -> POP3 -> user1
pop3 account 2 <--------------> Qmail 1.03 <--------> user2
pop3 account 3 <--------------> Qmail 1.03 <--------> user2
pop3 account 4 <--------------> Qmail 1.03 <--------> user3
-------------------------------------------------------------------
user 1 mail transfer is shown more detailed.
The problem is with the From lines of the workstations.
I don't wont to pest every user on LAN to change "From" and "Reply To"
lines. To make things worse. User 2 has 2 POP3 accounts and both
receive mail from mailinglists. So if message is sent to a mailing list
it's From line has to be changed acording to the mailing list address
AND (!) the serialmail must be smart enough to pick the correct host
for smtp transfer.
I was thinking along the lines:
queue messages into ~alias/pppdir <- already works!
set up a ~alias/SMTP_host_specific_queue for every
smtp host. Example:
~alias/smtp-1
~alias/smtp-2
~alias/smtp-3
Now I have to process mail. I have to run procmail on something else
on mail in ~alias/pppdir/new and check the from line.
If "From" is [EMAIL PROTECTED] I should send it to smtp.someplace.si
and so I move it to ~alias/smtp-x. I also have to change the from line
to [EMAIL PROTECTED]
Of course user2 is a bit more complicated. I have to check
~user2/mailinglists (for example) and if "To" line has an entry in
~user2/mailinglists, I should send to another smtp server. And
change the "From" line acording to mailinglist entry in
~user2/mailinglists.
Now.. Can procmail do that and if it can; can someone *please* send me
a few examples. Or do I have to make my own mail processor.
best regards,
Rok Papez,
Student at Faculty of Computer and Information Science,
University of Ljubljana, Slovenia.