LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-25-2004, 09:22 AM   #1
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Rep: Reputation: 30
postfix outbound forwading?


Hey all,

I just bought a mailhop outbound form dyndns.org because some ISP's would not accecpt my e-mails. (I am in a residential zone) So I am wondering how to set up postfix to push mail out to dyndns.org.

I also need to supply there smpt server with a username and passwd And would like to enable SSL. Can I set up postfix to do this for me, if so how?

Thanks
 
Old 08-25-2004, 04:50 PM   #2
dwgranth
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
yes you can use smtp authentication in postfix... you need to install cyrus-sasl and configure your smtpd.conf file in /usr/lib/sasl to use whatever auth methods you want... plus you need to add these lines in the /etc/postfix/main.cf file to be able to auth properly (and run /etc/init.d/postfix reload after you make these changes)

#allows for general auth
smtpd_sasl_auth_enable = yes
#no anon access
smtpd_sasl_security_options = noanonymous
#where you auth requests are allowed to go to
smtpd_sasl_local_domain = $myhostname
#lets bad email clients like outlook express to work w/ smtp auth
broken_sasl_auth_clients = yes
#and your security restrictions
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
check_relay_domains

as for your smtp not working for dyndns... i dont know.. you probably are running this through a firewall.. so ensure that your ports are open on the firewall / or are properly forwarded.

and dont be too discouraged... smtp auth is a pain in the butt sometimes
 
Old 08-25-2004, 05:38 PM   #3
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Original Poster
Rep: Reputation: 30
yea, I have sasl and ssl support set up locally.

snip of main.cf
Code:
smtpd_sasl_auth_enable = yes
smtpd_sasl_password_maps = hash:/etc/postfix/saslpass
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options =
broken_sasl_auth_clients = yes
smtpd_sasl_local_domain =

smtpd_use_tls = yes
#smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

smtpd_sasl_password_maps = hash:/etc/postfix/saslpass looks like so,
Code:
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/smtp.pass,v 1.2 2004/07/18 03:26:56 dragonheart Exp $
#
outbound.mailhop.org    myusername:mypassword

So I am not sure what the deal is. The u-name and passwd will not get passed for outgoing mail.

Another question,
I have two supported types of smtp auth set up plain and login how do I "force" those to be used because I can still connect to my smtp server with no auth what so ever.
 
Old 08-25-2004, 05:54 PM   #4
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Original Poster
Rep: Reputation: 30
smtpd is of course for the server side As some one from the gentoo forms pointed out to my foolish self. I would also need the lines with smtp for the client side of things so any ways It "almost work now my mail.log error:::

Code:
Aug 25 14:52:21 Myhost postfix/smtp[7478]: BDD1B59733: to=<myemail@isp.com>, relay=outbound.mailhop.org[63.208.196.171], delay=1, status=deferred (Authentication failed: cannot SASL authenticate to server outbound.mailhop.org[63.208.196.171]: no mechanism available)
They offer all types of auth, what the heck am I doing wrong.
 
Old 08-26-2004, 02:57 PM   #5
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Original Poster
Rep: Reputation: 30
anyone ?? please
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
NAT, iptables, forwading, firewall w3it Linux - Newbie 7 11-17-2005 02:15 AM
iptables: about FORWADING and nat fei Linux - Networking 36 05-22-2005 10:30 PM
Ip forwading questiong Radicalm16 Linux - Networking 5 11-25-2003 09:22 PM
Iptables - Port Forwading - Rh 9.0 dude_228 Linux - Networking 7 06-16-2003 03:20 AM
Outbound Firewall Collapse Linux - Software 2 04-14-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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