LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-05-2005, 06:05 AM   #1
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Rep: Reputation: 15
Is my Exim4 config file correct?... need help.


I have three computers on the network connected to Windows 2003 server AD. The forth one is the Debian server (debian 127.0.0.1 debian.example.com 192.168.0.3).

I want all three computers's email messages to the Debian server (192.168.0.3) and let Exim4 deliver the messages to my ISP.

Code:
dc_eximconfig_configtype='smarthost'
dc_other_hostnames='debian.example.com'
dc_local_interfaces='127.0.0.1'
dc_readhost='kroberts.homelinux.org'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets='192.168.0.0/24'
dc_smarthost='smtp.ntlworld.com'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery=maildir_home
I simply want the Exim server to reley the SMTP messages to my ISP server and I do require the SMTP Authentication since my ISP use it.

Say... if my email address looks like this: john.doe@ntlworld.com

Does that means I have to create a user account on the debian server as 'john.doe'?

That 'kroberts.homelinux.org', that is my dyndns domain and should that be there or 'debian.example.com'?

Last edited by ExCIA; 05-05-2005 at 06:14 AM.
 
Old 05-06-2005, 01:43 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
I may be wrong but I think you would need to use postfix/pop3/imap to do this job. Basically you need to be able to send mail via this host and be able to collect from this host. I don't run a full fledged email server on mine but am able to send mail via the isp by setting the route to their server in relay host in postfix and then picking up mail in /user_name/Mail via pop3. My setup was done using this howto;
http://www.projektfarm.com/en/suppor...tup/index.html
for Woody. If you want links to some others then let me know as I have several articles on this.

Last edited by TigerOC; 05-06-2005 at 01:45 AM.
 
Old 05-06-2005, 02:34 AM   #3
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Original Poster
Rep: Reputation: 15
I'll give it a try using the Postfix howto.

Quote:
If you want links to some others then let me know as I have several articles on this.
Please do.
 
Old 05-06-2005, 03:07 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Here are a few I have on file ;


Configuring Linux mail servers

Mail howto

isp mail server howto

Mail for the home network

Mail server mini-howto

postfix, courier, etc

Postfix mail server configuration

Postfix basic configuration

configure postfix for smtp relay host *this is the one you need after installing postfix

Mailman/postfix Debian


ISP style mail server

Enjoy the reading!

Last edited by TigerOC; 05-06-2005 at 03:40 AM.
 
Old 05-07-2005, 05:33 PM   #5
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Original Poster
Rep: Reputation: 15
TigerOC, I've completed the Debian setup using the howto that you used and I've tested the SMTP-AUTH using the ehlo localhost command, which works the first time.

What do I need to do now to get my NTL email working?

I mean how did you setup the postfix server to reley the messages to your ISP? Where do I insert the ISP's smtp address? SMTP authentication as well?

Say, for example on my XP box... I have an email address john.doe@ntlworld.com and do I simply create an account on the debian server as 'john.doe'? Would that be enough or there is more to is?

NTLWorld's address:

smtp.ntlworld.com
pop.ntlworld.com

BTW... thanks for the howto links, which are the best I've ever come across.

Last edited by ExCIA; 05-07-2005 at 05:34 PM.
 
Old 05-08-2005, 03:18 AM   #6
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
In the link above "configure postfix for smtp relay host" the instructions are;

Howto configure postfix to use a remote SMTP relay host




This is a public service message, because when I queried google "configure postfix remote smtphost", I couldn't find anything useful to the question I was trying to answer.


So you're running Linux, and your ISP is filtering traffic on port 25, thus blocking you from sending outgoing mail, and so you want to configure your mailserver to relay all your mail out through your ISP's server, like they want you to. If you're running postfix, this turns out to be very easy -- in /etc/postfix/main.cf, just set the variable:

relayhost = smtp.yourisp.com

then restart postfix (/etc/init.d/postfix restart, as root).

so in your case you set the line to;

relayhost=smtp.ntlworld.com

Try that. I used another howto and setup mine this way;

relayhost = [smtp.ntlworld.com]

The mail is sent fine using this method but I do get comments from postfix about not being able to get DNS validation from my isp mail server. This does not affect the mail transfer though. Your users will be able to pickup their mail in the usual way from pop.ntlworld.com with their mail client.
Edit: I think you need to add some lines to /etc/postfix/main.cf
see the postfix relay relay clients

I think you have to specify the hosts you want to relay mail for in the form;

mynetworks = 168.100.189.0/28, 127.0.0.0/8 specifying the range in the first section

Last edited by TigerOC; 05-08-2005 at 05:01 AM.
 
Old 05-08-2005, 10:38 AM   #7
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Original Poster
Rep: Reputation: 15
Got it to work. Thanks!

I used 192.168.0.0/24 for mynetworks.

Can Postfix with additional programs like virus scanners/filter contents scan outgoing mails before deliver to the ISP's server?

Any good tutorials on how to collect POP3 mails from ISP to Postfix server and I'll collect it via my XP box or etc?
 
Old 05-08-2005, 03:01 PM   #8
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Glad to hear the relay worked.
ProtF is a good virus scanner and it quite easy to set up. The most commonly used app to collect mail is fetchmail. I have not used it but I believe it quite easy to configure. You would have to set up users and mail accounts on the server.
 
Old 05-09-2005, 09:12 AM   #9
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Original Poster
Rep: Reputation: 15
Again, thanks for your help and here is the link I found about Fetchmail if you're interested.

http://newbiedoc.sourceforge.net/net...fetchmail.html
 
Old 05-09-2005, 02:58 PM   #10
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Congrats on solving the problem and thanks for posting back with a followup. This will be very useful to future readers who have similar questions. -- J.W.
 
  


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
correct rc file for slapt-get jsmarshall85 Slackware 3 07-25-2005 08:09 AM
Networking issues/problems in 9.3 is my config correct? A6Quattro SUSE / openSUSE 9 07-12-2005 11:36 PM
exim4 exim4, setup debian tongueroo Linux - Networking 1 11-09-2004 04:12 AM
Is my up2date file correct? hitbob Red Hat 4 09-14-2003 04:27 PM
Mandrake won't config. correct Darkangel90 Linux - Newbie 3 06-04-2002 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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