LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-12-2003, 10:37 AM   #1
Aeiedil
LQ Newbie
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 4

Rep: Reputation: 0
Internal/External Mail Server


G'day. I am currently sorting out the mail system for a network but am unsure as to what program to use, and so would like to know if anyone can recommend anything.

It must
- recieve email from an external pop server for multiple people (user@domain.com where domain.com is the custom domain, and the external pop server is pop.isp.com)
- send email to an external smtp server for multiple people (ie from user@domain.com through smtp.isp.com)

the *from* sections should remain unchanged in either case

assume there is a user, bob@ajob.com, and john@ajob.com, using pop.isp.com and smtp.isp.com

I need to allow bob to send an email, which then gets stored on the mail server, and then sent out to the internet when the mail server has internet access (not 24/7 access). if however the person bob is sending to, ie john@ajob.com, is on the lan, then the email need not be sent out to the internet but can be sent straight to them

the server must retrieve the emails from the external pop, pop.isp.com, for both bob and john, and forward them on to the respective people

Is there such a program arond? im sure there must be but i cannot find it. also is there any guides/how-to's, i have not a lot of linux exp

anyway all help would be appreciated if my description is unclear then ask for further expanation but i think its as clear as i can really make it atm :S
 
Old 08-19-2003, 02:34 PM   #2
MacKtheHacK
Member
 
Registered: Jul 2003
Location: Boston, MA, USA
Distribution: RedHat, SuSE, Gentoo, Slackware, Mandrake ...
Posts: 111

Rep: Reputation: 15
People usually don't set things up like this, because it would mean that your server would have to have a list of the POP passwords for each local user. Maintaining such a list would be a pain, unless you already use LDAP for authentication information on your network. But this can be done.

You need two things: a Mail Transfer Agent (MTA) and a POP client.
A MTA, such as sendmail or qmail, accepts mail being sent, attempts to deliver it, and enqueues it for later delivery if it cannot be delivered right away. That takes care of half the battle. Next you need a POP client, like fetchmail, that can periodically access POP mailboxes and inject the mail received from them into your local mail delivery system (which is probably the same MTA you use for outgoing mail).

See www.sendmail.org, www.qmail.org, and http://www.catb.org/~esr/fetchmail/ for more info.
 
Old 08-21-2003, 10:39 AM   #3
Aeiedil
LQ Newbie
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
hmm, have been trying to use them, however no matter how many howtos, mtas, etc etc i try i just cant get them to work

anyone know of a newbie how-to?
 
Old 08-21-2003, 10:48 AM   #4
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
i would recommend fetchmail and exim because i think out of all the mta's exim is by far the easiest to configure. but this imo is one of the single most hardest things to set up there is. i dont know of any newbie howto or documentation, all i can suggest is that you install some stuff and play around with some test accounts.
 
Old 08-22-2003, 02:37 AM   #5
Aeiedil
LQ Newbie
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
but this imo is one of the single most hardest things to set up there is
how reassuring well ill give exim a look at the moment i am trying to get the mta up before i sort out fetchmail or something. fetchmail dosent look that bad to set up, more a case of sorting out passwords and users, but the mtas ive looked at look about as easy to set up as an elephant on a pinhead hehe
 
Old 09-15-2003, 12:23 AM   #6
TongueTied
Member
 
Registered: Aug 2003
Distribution: SuSE 8.1 pro
Posts: 94

Rep: Reputation: 15
Did you manage to solve this? I want to do something very similar and am having LOTS of trouble.
 
Old 09-15-2003, 02:11 AM   #7
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Quote:
Originally posted by Aeiedil
hmm, have been trying to use them, however no matter how many howtos, mtas, etc etc i try i just cant get them to work

anyone know of a newbie how-to?
Have you tried http://www.tldp.org and do some searchint there.
There are a lot of cool stuff in tldp.

But everything you do seem to be have a lot of work to do and end up with to enter all the password of your external mail account.

Personally, i will suggest you to use postfix and fetchmail, although i am using sendmail. Postfix is very easy to configure and very secure.
 
Old 09-15-2003, 02:26 AM   #8
TongueTied
Member
 
Registered: Aug 2003
Distribution: SuSE 8.1 pro
Posts: 94

Rep: Reputation: 15
I'll take a look there. Right now, I am trying to setup qpopper for pop3 and haven't decided what to use for smtp. My isp uses authenticated smtp so I am going to need an smtp that will handle authenticated smtp and I can't determine if Postfix will do it. Do you know?

Hay, are you in Bantam Indonesia? Cool, I'm in KL.
 
Old 09-15-2003, 03:04 AM   #9
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Yes, postfix will do it. you only need to add some line in main.cf and smtp authentication will on your way. but make sure you have install smtp-auth in your lin box.

You will find out that, it is very easy to setup postfix.

BTW, i am in Batam, very nice you are in KL.
 
Old 09-15-2003, 03:34 AM   #10
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
Can vouch for postfix. after 15 hours of tinkering and reading yesterday, it's awesome. And after all my digging the config is actually not that bad when you understand what's going on.
 
Old 09-15-2003, 04:07 AM   #11
TongueTied
Member
 
Registered: Aug 2003
Distribution: SuSE 8.1 pro
Posts: 94

Rep: Reputation: 15
You don't by any chance have a good set of example config files do you?
 
Old 09-15-2003, 04:17 AM   #12
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
default_privs = nobody
inet_interfaces = all
local_destination_concurrency_limit = 2
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -a $DOMAIN -d $LOGNAME
mydestination = localhost, lizzynnarn.com
mydomain = lizzynnarn.com
myhostname = merlin.lizzynnarn.com
mynetworks = 192.168.7.1, 192.168.7.2, 192.168.6.7.3, 193.61.122.57, 193.61.122.
51, 127.0.0.0/8
myorigin = $mydomain
queue_directory = /var/spool/postfix
smtpd_banner = $myhostname ESMTP $mail_name


That's what i'm using

Its the main.cf file by the way.
 
Old 09-15-2003, 06:18 AM   #13
TongueTied
Member
 
Registered: Aug 2003
Distribution: SuSE 8.1 pro
Posts: 94

Rep: Reputation: 15
Using your main.cf file, I can send from the server to a user and the email can then be read with something like pine on the server. Now, the client machines can’t send. I get the following error:

The connection to the server has failed. Account: 'dakota', Server: 'dakota.leapp.office', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket Error: 10061, Error Number: 0x800CCC0E

It seems that the client machines can’t communicate with the PostFix at all!
 
Old 09-15-2003, 06:21 AM   #14
macdafoe
LQ Newbie
 
Registered: Sep 2003
Location: Fort Lauderdale
Distribution: RH 8.0
Posts: 23

Rep: Reputation: 15
MAIN.CF

EvilOne,

Our struggles with POSTFIX are finally bearing fruit.!!! I took a copy of the MAIN.CF you provided, and modified it with my network settings.

I'm getting better results now, except I'm experiencing authentications issues.

But I wanted to give thanks for having you post that one.....

-David
 
Old 09-15-2003, 07:45 AM   #15
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
not a problem dood. I would'nt want anyone doing the 16 hour straight session it took me to get that working lol.

What errors are showing up in your maillog???? Maybee i can shed some light.

do a postconf -n and post the outputs of that too , i'll see what i can do.


Last edited by Evilone; 09-15-2003 at 07:46 AM.
 
  


Reply



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
Mail Redirection from external id to internal id ! please help thiyagu4u Linux - Networking 4 07-14-2005 10:38 PM
setup email client for internal and external mail access shadoxity Linux - Software 15 04-21-2005 08:17 AM
how to set apache server with internal ip for external viewers overclocking Linux - Networking 2 01-26-2004 11:20 PM
Postfix mail server not accepting incoming mail from the external interface rexmundi Linux - Networking 7 12-22-2003 03:41 PM
Postfix relaying mail to internal mail server tradecraft1 Linux - Networking 2 10-28-2003 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:52 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