View previous topic :: View next topic |
Author |
Message |
SeJo Retired Dev
Joined: 08 Oct 2002 Posts: 298 Location: Belgium
|
Posted: Fri Dec 27, 2002 11:38 am Post subject: mail question erm rather opinion needed. |
|
|
Hi all,
I have a laptop running on Gentoo, on this machine i have several users (me, g/f, sister, rents etc)... that use their mail for on it.
Till now i have to logon for each user and fecth and rend their mail the minute i got online..
Now i would like to have a script/tool that fetches and send the mail immediately the minute i have a connection for all the users without having to login as them users.
I just want to know if i should use sendmail or something, or is there a tool already available... hate to reinvent the wheel...
if nothing exists please advise how or what tut's might help, i can't really see fetchmail and sendmail do that... but maybe cause i'm n00b...
thank you for your advice,
SeJo |
|
Back to top |
|
|
alec Apprentice
Joined: 19 Apr 2002 Posts: 270 Location: Here
|
Posted: Fri Dec 27, 2002 2:26 pm Post subject: |
|
|
I assume you're using fetchmail - there's a user rewriting feature that might help.
Something like:
user 'me' there with password '123' is 'king' here
I only use it in .fetchmailrc's in user accounts, and haven't tried it all from one user. |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Fri Dec 27, 2002 4:39 pm Post subject: |
|
|
I do something like this. I need to retrieve pop mail from several POP3 servers. Some of them have specific user id's that correspond to users on the local box; for these, I just use an "mda" line in my .fetchmailrc file that fires off sendmail. This corresponds to the first two stanza's in the fetchmailrc file below (that end in "sendmail -oem..."). The last stanza corresponds to an account that delivers mail to a common account for both users; this gets processed by procmail for correct delivery. Something that looks like one of the first two stanzas should probably work for you.
NB. This is an old system I hooked up quite a while back on a RedHat box that still seems to work OK. I haven't tried it on Gentoo though.
Code: |
server pop-server
protocol POP3
user jill
pass xxxxxx
mda "/usr/sbin/sendmail -oem jill"
server pop-server
protocol POP3
user joe
pass xxxxxx
mda "/usr/sbin/sendmail -oem joe"
server pop-server
protocol POP3
user joeandjill
pass xxxxxxx
mda "/usr/bin/procmail -f -"
|
|
|
Back to top |
|
|
|