LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Best mail solution (https://www.linuxquestions.org/questions/linux-software-2/best-mail-solution-36080/)

ccool 11-21-2002 12:19 PM

Best mail solution
 
Hi,

I'm looking for the best and easy solution

I have a little server at home where. As my ISP block the port 25, I thought that I could foward all the mails into another email account (like the one on my ISP) and my little server could pop in that account, get the mails and then put them into each user mailbox (so they could pop in there)

So I need
-> Something like fetchmail to go and get the mails
-> Somethings that reads the mails header and distribute them into the right account
-> A pop server

As anyone done something like that ??? I have heard of a few programs like Qmail, procmail, fetchmail, imap (ipop3d), gnu-pop3d, pine, mutt... but I have actually never used any and I don't know what combinaison to choose.

There is going to be about 10-20 users and I would really like to be able to set my dns like foward *@mydomain.com to myemail@somwhere.com. And because of the mail-foward system, I will be able to look at the "to: section" in the mail's header so that everythin wich is adress to joe@mydomain.com will go in joe's account, and everything else wich is not adress to anyone, foward into my account (admin or somethin else).

If anyone has ever done something similar or have seen a similar project on the web, please tell or refer me.

Thanks

acid_kewpie 11-21-2002 01:43 PM

well what you're after is perfectly achieveable using the appliactions you suggest. you want something like fetchmail, why not use fetchmail? it does a pretty good job of actually being fetchmail ;-) . you've not really described your potential system that well.. are all these mails going to be sent to the same address? that is what you seem to imply in your -> section, btu then you say you can read the To: header later... if it's jsut from one account per local account, then that's a trivial use of fetchmail, if it's just a single account, then it's a little more complex, and i'd suggest using procmail with fetchmail.

ccool 11-21-2002 02:18 PM

sorry if I was not clear...

I'll try to be clearer.

All mail, *@mydomain.com, are fowarded to mymail@isp.com

So, I have, about 15 users who each have an adress like dude@mydomain.com, john@mydomain.com, etc.

ok, so all thoses emails sent to dude@mydomain.com and to john@mydomain.com are going to end up in mymail@isp.com . I wanted to find a way so all the mails on my isp could be retreive and somehow "filtered" so that mails to dude goes in dude's account (on my little server) and mails to john goes to jonh's account... (same thing for the other users)

At last, in the end, each users could "pop" the little server and retreive their mails

So, as I said, I have never used fectchmail or procmail... (I am currently trying to read the docs...) and I wanted to be sure everything was possible...

My goal here is that I can learn and have a cool email in the process ;) I know it is possible and I though that someone must have done it before. I also know it is not very "professionnal" because all mails goes into one account and then are "split" into different ones... But as it is only for a few persons (friends), for fun and to learn and don't really care... Since my port 25 is block, I cannot receve mails directly.

I really hope everythin is clearer.

And if I understand what you said, I could "simply" use fetchmail + procmail + ipop3d (or something like that in the inetd)

ccool 11-25-2002 10:52 AM

I tried this solution, but something is REALLY WEIRD... For some reason, sendmail is not able to redirect the mails in the inbox @localhost...

So if I send a mail at my place, I get a bounce from sendmail saying that it could not reach ccool@localhost, same thing with root@localhost.

Anyone has a clue ??? I'd be interested ;)

MadPenguin 11-25-2002 12:29 PM

i'd check my hosts file and make sure you define mydomain properly, first time i set up mail i made that mistake and it didn't work till i defined it properly in hosts


All times are GMT -5. The time now is 06:29 PM.