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 |
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. |
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? |
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.
|
Quote:
|
Did you manage to solve this? I want to do something very similar and am having LOTS of trouble.
|
Quote:
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. |
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. |
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. |
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.
|
You don't by any chance have a good set of example config files do you?
|
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 |
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! |
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 |
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. |