#1  
Old 12th January 2006, 16:51
wr19026 wr19026 is offline
Senior Member
 
Join Date: Jan 2006
Posts: 172
Thanks: 7
Thanked 1 Time in 1 Post
Question Relayhost?

Hi,

So now I have a working system that I can access from inside my own network as well Being a total noob it took me long enough to get here!

Now I need some advise:
Outgoing mail is not a problem but incoming mail is. I just don't receive anything. So I looked up all possible solutions and came to the conclusion that it had to have something to do with DNS.

Turns out my ISP is blocking port 25. Which is fine as long as I can receive mail. Which I currently can't. They recommend that I set up mail DNS at NetworkSolutions where I have registered my domainname as follows:
10 server.mydomain.dom
20 mailrelay.myisp.dom

Now I was thinking, there is a field called "relayhost" in main.cf for Postfix as well so perhaps I should use that instead.

Any suggestions (and explanations why) as to which solution would be better?

My ISP actually wants me to use the "smarthost" option for Postfix. How would that impact my setup (if at all)?

Thanks in advance.

Last edited by wr19026; 12th January 2006 at 16:55.
Reply With Quote
Sponsored Links
  #2  
Old 12th January 2006, 17:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,614 Times in 4,425 Posts
Default

The relayhost in postfix is for outgoing mail, not incoming.

I'am not familar with the smarthost option in postfix, but i think you can not host a real server when port 25 is blocked.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 12th January 2006, 18:21
wr19026 wr19026 is offline
Senior Member
 
Join Date: Jan 2006
Posts: 172
Thanks: 7
Thanked 1 Time in 1 Post
Default

This is what my main.cf looks like after I reconfigured Postfix to Internet with smarthost:

root@server:~# more /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = server.mydomain.dom
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = mydomain.dom, server.mydomain.dom, mail.server.mydomain.dom, localhost.mydomain.dom, localhost
relayhost = mailrelay.direct-adsl.nl
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
home_mailbox = Maildir/
mailbox_command =

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names


So what it definitely does is replace mydestination by /etc/postfix/local-host-names

Do you see any risks associated with that?
Reply With Quote
  #4  
Old 12th January 2006, 22:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

Quote:
Originally Posted by wr19026
virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names


So what it definitely does is replace mydestination by /etc/postfix/local-host-names
These last two lines
Code:
virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names
were added to /etc/postfix/main.cf by the ISPConfig installer!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 13th January 2006, 00:07
wr19026 wr19026 is offline
Senior Member
 
Join Date: Jan 2006
Posts: 172
Thanks: 7
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko
These last two lines
Code:
virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names
were added to /etc/postfix/main.cf by the ISPConfig installer!
So it seems that changing the configuration for Postfix to Internet with Smarthost (or whatever the right option is) did not really change my main.cf and therefore should not have an enormous impact on how ISPConfig works. Or is that too easy
Reply With Quote
  #6  
Old 13th January 2006, 04:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

As far as I can see, your main.cf looks like any other main.cf on Debian and Ubuntu systems that have been set up using the "Perfect Setups". I can't see anything about Smarthost.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 13th January 2006, 11:22
wr19026 wr19026 is offline
Senior Member
 
Join Date: Jan 2006
Posts: 172
Thanks: 7
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko
As far as I can see, your main.cf looks like any other main.cf on Debian and Ubuntu systems that have been set up using the "Perfect Setups". I can't see anything about Smarthost.
I think that what the smarthost option does is fill the "relayhost" value.
Reply With Quote
  #8  
Old 13th January 2006, 12:13
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,614 Times in 4,425 Posts
Default

If i read your posts correctly, you have problems with incoming mail, not outgoing?

The relayhost tells postfix to send emails trough another server and not directly. This can only solve problems with outgoing emails and blacklisting of dynamic IP addresses.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 13th January 2006, 15:26
wr19026 wr19026 is offline
Senior Member
 
Join Date: Jan 2006
Posts: 172
Thanks: 7
Thanked 1 Time in 1 Post
 
Default

Quote:
Originally Posted by till
If i read your posts correctly, you have problems with incoming mail, not outgoing?

The relayhost tells postfix to send emails trough another server and not directly. This can only solve problems with outgoing emails and blacklisting of dynamic IP addresses.
The funny thing is though that since I changed my config to Internet w/smarthost my outgoing mail is working. So the issue is solved; at least for me. But I think that with more and more ISPs using relay hosts to avoid blacklisting this might be something that will pop up more and more in the future.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Config Problem bolinux Installation/Configuration 27 20th August 2005 17:12


All times are GMT +2. The time now is 09:52.


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