Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd January 2008, 05:33
heymrdj heymrdj is offline
Member
 
Join Date: Feb 2007
Posts: 58
Thanks: 2
Thanked 4 Times in 4 Posts
Default Full Email support in ISPConfig server

Looking to get the mail server part working in my setups. The server's host name is serverhost (it is a main server for many virtual ones) on the domain eatest.homelinux.org. The entire access to the server is http://serverhost.eatest.homelinux.org Bellsouth DSL blocks port 25, so I know this is the place to start. My domain uses DynDNS to use auto IP update for my dynamic IP. The server is in DMZ by my router, and I've successfully outsourced MySQL, web, and FTP to my brother in Wisconsin. (I'm in Georgia, so i know that's a good distance DNS test.) Now how do I get email to work right where the server can both send and receive email (such as to user heymrdj on serverhost.eatest.homelinux.org). Is fixing this port problem the only issue? What about MX records, I know I don't have any? I don't think anyways. Please enlighten me. thank you
Reply With Quote
Sponsored Links
  #2  
Old 3rd January 2008, 14:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

You can use the ports 465 or 587 if 25 is blocked. If you search the forum ,you should find some threads about this. Then you should relay your emails through another mail server because most dynamic IP addresses are blacklisted nowadays: http://www.howtoforge.com/postfix_re...her_mailserver

To check your MX records, run
Code:
dig mx yourdomain.com
To find out about the authoritative nameservers for your domain, run
Code:
dig ns yourdomain.com
__________________
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
  #3  
Old 5th January 2008, 19:27
heymrdj heymrdj is offline
Member
 
Join Date: Feb 2007
Posts: 58
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Well i'm still kind of out of it. I am trying to route email from ISPConfig server to my SMTP server on my linux box. I ran the port change with somting like
Code:
465 initd - - - - smptd
or somehting similar...got it off another post on this forum. Then I ran your guide on relays using my everythinganime.org server. I ended up tring to send email and got this:
Code:
Sat Jan 5 12:46:49 	web1_proxy@example.com 	heymrdjCW@gmail.com 	764 bytes 	connect to linuxsrv01.usdcservers.net[208.78.40.25]: Connection timed out
The first thing I don't undestand is that example.com, this is through ISPConfig squirrelmail logged in as root@serverhost.eatest.homelinux.org and yet it's showing that example.com in the message ques in Webmin.

When i dig my MX I get:
Code:
; <<>> DiG 9.2.4 <<>> -t MX www.eatest.homelinux.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21142
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 5, ADDITIONAL: 5

;; QUESTION SECTION:
;www.eatest.homelinux.org. IN MX

;; ANSWER SECTION:
www.eatest.homelinux.org. 60 IN CNAME eatest.homelinux.org.
eatest.homelinux.org. 60 IN MX 10 linuxsrv01.usdcservers.net.

;; AUTHORITY SECTION:
homelinux.org. 39801 IN NS ns5.dyndns.org.
homelinux.org. 39801 IN NS ns3.dyndns.org.
homelinux.org. 39801 IN NS ns2.dyndns.org.
homelinux.org. 39801 IN NS ns4.dyndns.org.
homelinux.org. 39801 IN NS ns1.dyndns.org.

;; ADDITIONAL SECTION:
ns1.dyndns.org. 62898 IN A 63.208.196.90
ns3.dyndns.org. 84281 IN A 208.78.69.75
ns4.dyndns.org. 4010 IN A 91.198.22.75
ns2.dyndns.org. 23419 IN A 204.13.249.75
ns5.dyndns.org. 51062 IN A 203.62.195.75

;; Query time: 114 msec
;; SERVER: 70.84.160.11#53(70.84.160.11)
;; WHEN: Sat Jan 5 11:17:50 2008
;; MSG SIZE rcvd: 275

When I dig my NS I get
Code:
; <<>> DiG 9.2.4 <<>> -t NS www.serverhost.eatest.homelinux.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25046
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;www.serverhost.eatest.homelinux.org. IN NS

;; ANSWER SECTION:
www.serverhost.eatest.homelinux.org. 48 IN CNAME eatest.homelinux.org.

;; AUTHORITY SECTION:
homelinux.org. 1800 IN SOA ns1.dyndns.org. hostmaster.dyndns.org. 2049969684 10800 1800 604800 1800

;; Query time: 27 msec
;; SERVER: 70.84.160.11#53(70.84.160.11)
;; WHEN: Sat Jan 5 11:18:59 2008
;; MSG SIZE rcvd: 125
In ISPConfig, do i need to make my primary and secondary nameservers ns1/ns2.dyndns.org instead of the serverhost.eatest.homelinux.org they are now?
Reply With Quote
  #4  
Old 6th January 2008, 13:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

An MX record must never point to a CNAME record - it must point to an A record instead.

Quote:
Originally Posted by heymrdj
In ISPConfig, do i need to make my primary and secondary nameservers ns1/ns2.dyndns.org instead of the serverhost.eatest.homelinux.org they are now?
You don't need ISPConfig's DNS Manager at all because the records for homelinux.org are managed by the company that owns homelinux.org.
__________________
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 2008, 22:31
heymrdj heymrdj is offline
Member
 
Join Date: Feb 2007
Posts: 58
Thanks: 2
Thanked 4 Times in 4 Posts
Default

I found out how you can use GMAIL SMTP server as a relay host in Postfix.

Code:
relayhost = [smtp.gmail.com]:587

#auth
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

#tls
smtp_use_tls = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tks_note_starttls_offer = yes
tls_random_source = dev:/dev/urandom
smtp_tls_scert_verifydepth = 5
smtp_tls_key_file=/etc/postfix/certs/itchy.key
smtp_tls_cert_file=/etc/postfix/certs/itchy.pem
smtpd_tls_ask_ccert = yes
smtpd_tls_req_ccert =no
smtp_tls_enforce_peername = no

Create /etc/postfix/sasl_passwd with the following format:
gmail-smtp.l.google.com user@gmail.com:password
smtp.gmail.com user@gmail.com:password

postmap /etc/posfix/sasl_passwd

/etc/init.d/postfix reload
I just have one question. When relaying like this, do the receivers of the email see my servers email (egw[REMOVE]eatest.homelinux.org) or do they see the account i relay through (heymrdjCW[REMOVE]@gmail.com) on the from line. I want the server to send emails in the form of the first, rather than the latter.
Reply With Quote
  #6  
Old 14th January 2008, 09:29
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,771
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

The receivers should see the email address that you used in your mail client. But you should simply test it as it is possible that google rewrites the email address.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Cannot send email from OE through ISPconfig site tomd General 10 12th March 2009 06:05
ISPConfig 2.3.2-dev released till General 9 4th June 2007 10:46
Support Tickets - Email End User Xtreem1986 Installation/Configuration 8 11th May 2007 01:47
Another ERROR: The PHP binary coming with ISPConfig does not work properly on your sy hoopsx3 Installation/Configuration 2 29th January 2007 07:56
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16


All times are GMT +2. The time now is 02:06.


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