Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mail question erm rather opinion needed.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
SeJo
Retired Dev
Retired Dev


Joined: 08 Oct 2002
Posts: 298
Location: Belgium

PostPosted: Fri Dec 27, 2002 11:38 am    Post subject: mail question erm rather opinion needed. Reply with quote

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
View user's profile Send private message
alec
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 270
Location: Here

PostPosted: Fri Dec 27, 2002 2:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Fri Dec 27, 2002 4:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum