LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Internal/External Mail Server (https://www.linuxquestions.org/questions/linux-software-2/internal-external-mail-server-81295/)

Aeiedil 08-12-2003 10:37 AM

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

MacKtheHacK 08-19-2003 02:34 PM

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.

Aeiedil 08-21-2003 10:39 AM

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?

kev82 08-21-2003 10:48 AM

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.

Aeiedil 08-22-2003 02:37 AM

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 :)

TongueTied 09-15-2003 12:23 AM

Did you manage to solve this? I want to do something very similar and am having LOTS of trouble.

joseph 09-15-2003 02:11 AM

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.

TongueTied 09-15-2003 02:26 AM

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.

joseph 09-15-2003 03:04 AM

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.

Evilone 09-15-2003 03:34 AM

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.

TongueTied 09-15-2003 04:07 AM

You don't by any chance have a good set of example config files do you?

Evilone 09-15-2003 04:17 AM

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. :D

TongueTied 09-15-2003 06:18 AM

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!

macdafoe 09-15-2003 06:21 AM

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

Evilone 09-15-2003 07:45 AM

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.

:D


All times are GMT -5. The time now is 02:11 AM.