LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Is my Exim4 config file correct?... need help. (https://www.linuxquestions.org/questions/debian-26/is-my-exim4-config-file-correct-need-help-320335/)

ExCIA 05-05-2005 06:05 AM

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'?

TigerOC 05-06-2005 01:43 AM

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.

ExCIA 05-06-2005 02:34 AM

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.

TigerOC 05-06-2005 03:07 AM

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!

ExCIA 05-07-2005 05:33 PM

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. ;)

TigerOC 05-08-2005 03:18 AM

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

ExCIA 05-08-2005 10:38 AM

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?

TigerOC 05-08-2005 03:01 PM

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.

ExCIA 05-09-2005 09:12 AM

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

J.W. 05-09-2005 02:58 PM

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.


All times are GMT -5. The time now is 08:30 AM.