Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Special mail setup... Any help appreciated!
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
firekite
n00b
n00b


Joined: 28 Oct 2002
Posts: 18
Location: San Antonio, TX

PostPosted: Sun Dec 15, 2002 7:10 pm    Post subject: Special mail setup... Any help appreciated! Reply with quote

Hey, guys. This topic has been hashed over before, but nothing *directly* speaks to what I'm looking to do. It's frustrating, because it seems like it should be so simple, and yet I feel helpless to actually get it done.

Concept: retrieve multiple external POP3 addresses (1 is my ISP's, 3 other hosted remotedly for my domain name), serve that retrieved email via webmail (IMAP and SquirrelMail).

The main problem I'm having is that I have yet to figure out how to retrieve the messages from multiple external email addresses, most likely via fetchmail (so I'm told). Perhaps this is insanely simple, and it's just due to my unfamiliarity with the Unix mail system, I don't know. But *any* help and/or suggestions would be greatly appreciated! :)

Thanks!
_________________
Eric (the Deacon remix)
Back to top
View user's profile Send private message
Larde
Guru
Guru


Joined: 07 Jun 2002
Posts: 313
Location: Duesseldorf, Germany

PostPosted: Sun Dec 15, 2002 8:45 pm    Post subject: Reply with quote

I think that setup isn't special at all - I guess most of us have a similar setup. :-) If really this
Quote:
I have yet to figure out how to retrieve the messages from multiple external email addresses
is your main problem, then don't worry: simply stick multiple poll statements in your .fetchmailrc, as in
Code:
poll pop.puretec.de with protocol POP3, with options uidl
        user "myuser1" there with password "mypass1" is myuser@localhost here
        with options nokeep mimedecode pass8bits
poll pop.puretec.de with protocol POP3, with options uidl
        user "myuser2" there with password "mypass2" is myuser@localhost here
                with options nokeep mimedecode pass8bits
poll pop.gmx.de with protocol POP3, with options uidl
        user "myuser3" there with password "mypass3" is myuser@localhost here
                with options nokeep mimedecode pass8bits

etc. Just create a .fetchmailrc similar to that (the manpage will guide you further), and fire up fetchmail. It should poll one account after the other and try to stick it in you locally running MTA. That means, you should have decided and installed already something like qmail, postfix, exim, whatever you find easiest to set up.

Hth,
Larde.
_________________
Someday this will be my home... http://moonage.net/
I'll make you a deal
I'll say I came from Earth and my tongue is taped
Back to top
View user's profile Send private message
firekite
n00b
n00b


Joined: 28 Oct 2002
Posts: 18
Location: San Antonio, TX

PostPosted: Sun Dec 15, 2002 9:18 pm    Post subject: Reply with quote

Yes, but wouldn't that mean I'd need to create a new linux user for every different email address? Heh, I wish there were a little more thorough guide somewhere for those of us who aren't new to computing/networking, but *are* still pretty new to linux :\
_________________
Eric (the Deacon remix)
Back to top
View user's profile Send private message
Larde
Guru
Guru


Joined: 07 Jun 2002
Posts: 313
Location: Duesseldorf, Germany

PostPosted: Sun Dec 15, 2002 9:58 pm    Post subject: Reply with quote

Quote:
but wouldn't that mean I'd need to create a new linux user for every different email address?

No, it wouldn't. Why do you think so? You can have all the pop3 sources you want to poll in one .fetchmailrc of your user, and the "is myuser@localhost" statement of my example can all point to the very same user. I actually have 5 pop3 sources, and my example was just an edited cut'n'paste from my own .fetchmailrc.
I think I've seen some Howto's for mail setup over in Tips & Tricks section, you should search for mail there. It just seems hard in the beginning, you'll get into it. :-)

Larde.
_________________
Someday this will be my home... http://moonage.net/
I'll make you a deal
I'll say I came from Earth and my tongue is taped
Back to top
View user's profile Send private message
firekite
n00b
n00b


Joined: 28 Oct 2002
Posts: 18
Location: San Antonio, TX

PostPosted: Sun Dec 15, 2002 11:55 pm    Post subject: Reply with quote

Thanks :)
_________________
Eric (the Deacon remix)
Back to top
View user's profile Send private message
firekite
n00b
n00b


Joined: 28 Oct 2002
Posts: 18
Location: San Antonio, TX

PostPosted: Mon Dec 16, 2002 6:17 pm    Post subject: Reply with quote

Larde wrote:
Code:
poll pop.puretec.de with protocol POP3, with options uidl
        user "myuser1" there with password "mypass1" is myuser@localhost here
        with options nokeep mimedecode pass8bits
poll pop.puretec.de with protocol POP3, with options uidl
        user "myuser2" there with password "mypass2" is myuser@localhost here

Quick question on this setup:

Does this mean that if I have an email address of "foo@bar.com" out there being hosted for me, and I deliver it to "myuser@localhost", does it still know that it's really foo@bar.com and not myuser@localhost whenever I'm actually sending and receiving email? Specifically, if I have foo2@bar.com in addition to foo@bar.com, will they both be recognized as seperate email addresses and replies sent out as such?

The way I have it set up right now, I'm using Outlook2002 to receive messages through multiple email accounts. If someone emails me at foo2@bar.com, and I hit Reply, it replies through foo2@bar.com. My concern is that when I set up fetchmail to pull in the mail and deliver it to myuser@localhost, reading the mail through SquirrelMail will not accurately reply using foo2@bar.com, instead replying as myuser@localhost. Am I crazy? Am I just overanalyzing it?
_________________
Eric (the Deacon remix)
Back to top
View user's profile Send private message
firekite
n00b
n00b


Joined: 28 Oct 2002
Posts: 18
Location: San Antonio, TX

PostPosted: Sat Dec 21, 2002 7:26 am    Post subject: Reply with quote

Anyone?
_________________
Eric (the Deacon remix)
Back to top
View user's profile Send private message
Larde
Guru
Guru


Joined: 07 Jun 2002
Posts: 313
Location: Duesseldorf, Germany

PostPosted: Sat Dec 21, 2002 8:39 am    Post subject: Reply with quote

Hi!

Quote:
Does this mean that if I have an email address of "foo@bar.com" out there being hosted for me, and I deliver it to "myuser@localhost", does it still know that it's really foo@bar.com and not myuser@localhost whenever I'm actually sending and receiving email?


I try to jump in again. :-)

Well, fetchmail really is just for getting mails somewhere and deliver it to a local user. What adress you use to send out mail is up to you, fetchmail has nothing to do with it. You can send out mails from your local user with any "From:" you want, just configure your mail program to do so.
Ah, and when fetchmail collects mails from different sources and delivers it locally to one user, you will still see the original "To:" the mail was sent to, so you can set up your mail client to use that address automatically when you reply to a mail or sort incoming mails in different mailfolders depending on the original "To:". Well, at least this is what I do using evolution. :-)

Hth,
Larde.
_________________
Someday this will be my home... http://moonage.net/
I'll make you a deal
I'll say I came from Earth and my tongue is taped
Back to top
View user's profile Send private message
firekite
n00b
n00b


Joined: 28 Oct 2002
Posts: 18
Location: San Antonio, TX

PostPosted: Sun Jan 05, 2003 5:45 pm    Post subject: Reply with quote

I think it's safe to say that mail is one of the most flexible and still most cryptic/complicated (unnecessarily so) points of Linux.
_________________
Eric (the Deacon remix)
Back to top
View user's profile Send private message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Sun Jan 05, 2003 7:16 pm    Post subject: Reply with quote

have you already tried getmail? compared to fetchmail it's easier (in my opinion...) to configure, and it can deliver mail directly to mbox and maildir files.

firekite wrote:
I think it's safe to say that mail is one of the most flexible and still most cryptic/complicated (unnecessarily so) points of Linux.

if you read the docs it's not complicated at all. have you ever tried to set up a RFC-whatever conforming mailserver (smtp, imap, pop3, ...) on a windows "system"? that's what i call cryptic/complicated...
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