LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2004, 04:11 AM   #1
PepeKa
LQ Newbie
 
Registered: Jul 2004
Location: Germany
Posts: 4

Rep: Reputation: 0
Question Mail forwarding server


I would like to set up a mail forwarding server that is flexible to handle also larger amounts of users.

I.e. source server does POP3 or IMAP4, destination server is standard SMTP MIME

user1@source.org --> forwarded --> user1@destination.org
user2@source.org --> forwarded --> user 2@destination.org
....
This should be flexible to also work for several hundred users and should work with as little manual intervention as possible.

I assume I have to use a combination of fetchmail and Exim or Postfix, but couldn't find any real hints on how to set this up.

Does anyone know about guidelines or HowTos for this or can point me in the right direction?

Thanks in advance!
Pepe
 
Old 07-27-2004, 07:52 AM   #2
Bjorkli
Member
 
Registered: Jul 2003
Location: Norway
Posts: 65

Rep: Reputation: 15
Not sure if this is helping,

If you use a distribution like Redhat Fedora Core 1 or 2, sendmail and pop etc it is all on the distribution and ready to be ticked off (and installed). Even squirell web mail will work then (which is webmail ala hotmail)

Use webmin (google: webmin) to setup the mail server. it makes it easy.

If the users are on a local area network, you simply limit the IP addresses that can use sendmail to stop spammers using the server. If these users are dial up people using other ISPs it is harder since they might receive random IP addresses. If you want an open relay (no configuration whatsoever) it is easy to set up using sendmail and webmin, but spammers would love you, and the rest of the world hate you. But you can try to install AUTH using http://www.simpaticus.com/linux/howt...UTH-HOWTO.html or http://www.joreybump.com/code/howto/smtpauth.html . These will make users provide passwords when using pop etc also when sending mail. But some setup in each users Outlook express is required then (they have to tick off some options).

Hope it helped a bit..

Cheers
 
Old 07-29-2004, 09:37 AM   #3
PepeKa
LQ Newbie
 
Registered: Jul 2004
Location: Germany
Posts: 4

Original Poster
Rep: Reputation: 0
Question

Thanks for your suggestions. Webmin is really a great tool!

However I, as a newbie, want to start a bit more complicated:

Well, I don't even know if this is possible with standard software, at all, or if this would need an application specifically written for this.

- 500 user mailboxes with messages should be forwarded automatically to the corresponding 500 mailboxes on another e-mail server.
- the existing mailservers do not actively push or pull messages from or to the other server. Message flow is only in one direction.
- If a Linux server is used to actively pull messages from the source mailbox and automatically forward the message to the destination mailbox, it shall not store any messages or copies.

- I would like to avoid setting up a (third) user account and mailbox (this time) on the Linux mail forwarding server for each of these 500 users. I would like to achieve the message pull and forward with just a single account on Linux.
- To make this flexible and managable, I guess the user information (source mailbox, password, destination mailbox) would have to be done via a database or at least one ASCII file.

Anybody any ideas if this can be done? Any hints how?

Thanks in advance

Pepe
 
Old 07-29-2004, 01:13 PM   #4
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
you can edit your /etc/mail/virtusertable (sendmail install) and say:

joe@joescoffee.com joe@joescoffeehouse.com

any mail sent to joe@joescoffee.com will be forwarded to joe@joescoffeehouse.com


hope this helps!
 
Old 07-30-2004, 02:42 AM   #5
PepeKa
LQ Newbie
 
Registered: Jul 2004
Location: Germany
Posts: 4

Original Poster
Rep: Reputation: 0
Lightbulb

Hey, that is exactly the type of functionality I am looking for! Thanks!

Now my only problem is that the mails are not coming in automatically, but have to be actively pulled from another server. Can this be done via sendmail, too, or do I need fetchmail for this?

I.e. the messages are actively pulled from a POP3/IMAP mailbox and via sendmail automatically forwarded to a mailbox on another server?

Thanks in advance!!!

:-)

Pepe
 
Old 06-15-2005, 10:50 PM   #6
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
Same Thing

I am looking to do something similar, except I have a large number of email aliases ( say I make an alias for amazon.com, calling it "joe-amazon@mydomain.org", and then in the aliases file, I map that address to it gets delivered to "joe@mydomain.org". Now say I give this alias out to someone, and I want email from them to the amazon.com alias to be forwarded to my cell phone address ( say, "124567890@att.mobile.com".

Is there a way to set this up? To recap, email from x to y gets forwarded to z.
 
Old 06-20-2005, 08:53 AM   #7
PepeKa
LQ Newbie
 
Registered: Jul 2004
Location: Germany
Posts: 4

Original Poster
Rep: Reputation: 0
Smile

In the end I used a standard SUSE distribution with FETCHMAIL and POSTFIX. I used WEBMIN to configure it.
I always wanted to use PHP to make a sort of self service page where every user enters his account and forwarding details if he wants to have a forwarding, but never found the time to actually do it.

:-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Procmail: forwarding mail to remote mail account Cadmium Linux - Software 2 01-14-2010 01:05 PM
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 12:10 PM
mail forwarding Ammad Linux - Networking 4 05-25-2005 10:40 PM
Creating a Mail Forwarding Server chronom1 Linux - Networking 1 07-09-2004 03:10 PM
Sendmail second server/mail forwarding? WorldBuilder Linux - Networking 4 03-11-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration