HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   The Perfect Setup - Debian Woody (3.0)... sending mail from my XP box? (http://www.howtoforge.com/forums/showthread.php?t=72)

ExCIA 7th May 2005 16:37

The Perfect Setup - Debian Woody (3.0)... sending mail from my XP box?
 
BTW... this is one of the best HOWTOs website I've ever come across. Two thumbs up. :)

Anyway, I have completed the 'The Perfect Setup - Debian Woody' and what do I need to do in order to send mails from my XP machines (outlook) to my Debian server and let the Debian server deliver the mail to my ISP?

I have three XP machines in the network and the forth one is the Debian server (192.168.0.3). All is connected through a router (broadband).

My ISP's (NTLWorld) smtp/pop3 servers are:

smtp.ntlworld.com
pop.ntlworld.com

To send mail I have to use SMTP authentication.

For example, if my email address is john.doe@ntlworld.com does that means I have to create an account on the Debian server as john.doe?

falko 8th May 2005 15:00

Quote:

For example, if my email address is john.doe@ntlworld.com does that means I have to create an account on the Debian server as john.doe?
No, the user name doesn't matter, you could create a user named sampleuser with the password samplepassword.

Now you have to prepare Postfix for relaying through another server:

Code:

postconf -e 'smtp_sasl_auth_enable = yes'
postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd'
postconf -e 'smtp_sasl_security_options ='


chown root:root /etc/postfix/sasl_passwd
chmod 600 /etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd
/etc/init.d/postfix restart

In /etc/postfix/sasl_passwd you put your ISP's SMTP server and a user name and password that are allowed to send through that server:

Code:

smtp.ntlworld.com  Username on smtp.ntlworld.com:Password
Whenever you change /etc/postfix/sasl_passwd you have to do the following:
Code:

postmap /etc/postfix/sasl_passwd
/etc/init.d/postfix restart

Now if you want to send email from your XP machine you tell your email client to use the user sampleuser with the password samplepassword along with your internal SMTP server (192.168.0.3).
And fetching emails doesn't change: you simply fetch them from your ISP's POP3 server (pop.ntlworld.com).

ExCIA 8th May 2005 21:12

What is the difference between doing what you suggest and simply add an ISP's smtp server address in the 'relayhost =' in the /etc/postfix/main.cf file?


Good thing you mentioned /etc/postfix/sasl_passwd because mine doesn't exist, which I find that pretty strange?

falko 9th May 2005 13:28

Quote:

What is the difference between doing what you suggest and simply add an ISP's smtp server address in the 'relayhost =' in the /etc/postfix/main.cf file?
Right, I forgot that one... :o You have to set the relayhost variable in /etc/postfix/main.cf:

Code:

postconf -e 'relayhost = smtp.ntlworld.com'
And don't forget to restart Postfix afterwards.

3cwired_com 3rd September 2006 17:22

What if I don't have a password for my isp smtp, what if I just use the address?

till 3rd September 2006 19:25

If you dont have a password, just add the relayhosts line in main.cf

fredsuperstar 5th October 2006 20:21

Great! I've been looking everywhere for this workaround!

I did every step, and I added relay = [smtph.sympatio.ca] to my .conf. However, postfix is still unable to send mail because of a 550 error. Here is my log:

Oct 5 13:18:08 localhost postfix/smtp[28537]: setting up TLS connection to smtp.bc.hotmail.com
Oct 5 13:18:08 localhost postfix/smtp[28537]: certificate peer name verification failed for smtp.bc.hotmail.com: CommonName mis-match: smtphm.sympatico.ca
Oct 5 13:18:08 localhost postfix/smtp[28537]: Verified: subject_CN=smtphm.sympatico.ca, issuer=Entrust.net Secure Server Certification Authority
Oct 5 13:18:08 localhost postfix/smtp[28537]: TLS connection established to smtp.bc.hotmail.com: TLSv1 with cipher RC4-MD5 (128/128 bits)
Oct 5 13:18:08 localhost postfix/smtp[28537]: 71CCB13413B: to=<fred@XXXXXX.ca>, relay=smtp.bc.hotmail.com[65.54.191.190], delay=1, status=bounced (host smtp.bc.hotmail.com[65.54.191.190] said: 550 5.7.3 Requested action aborted; user not authenticated (in reply to MAIL FROM command)

Seems like the auth don't work..
Any i-d what I could do next?

--

falko 6th October 2006 16:11

You need to authenticate at the other mail server. Did you follow these instructions? http://www.howtoforge.com/forums/sho...07&postcount=2
http://www.howtoforge.com/forums/sho...09&postcount=4

jwan 23rd November 2006 08:27

selective relayhost
 
Hi,

Is it possible that only selected users/domain can or will be relayed via relayhost?

Eg. user1@domain-a.com
user2@domain-a.com
user3@domain-b.com
user4@domain-c.com
user5@domain-c.com

then users under domain domain-a.com are relayed via relayhost
then user4@domain-c.com also get relayed...but user3 and user5 should not be relayed but get send direct to reciepients MX

Jojo W.

falko 24th November 2006 16:25

It seems you can do it with the sender_dependent_relayhost_maps parameter (if you have Postfix 2.3 or newer): http://www.postfix.org/postconf.5.ht...relayhost_maps


All times are GMT +2. The time now is 11:39.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.