sonoffett
15th May 2006, 02:19
Hey guys,
So I installed ubuntu and ISPConfig by following the how2forge guide and didn't run into any troubles. I am not sure if I set up my DNS entries though. I registered a domain at godaddy and edited the DNS entries so that NS1.xxx.com and NS2.xxx.com would both point to my server which is running two static ips, eth0 and eth0:0. I then registered another domain (yyy.com) and pointed it's name servers to NS1.xxx.com and NS2.xxx.com. I also added the site to my ISP config and when I go to yyy.com or www.yyy.com it correctly redirects.
Where I run into trouble is when trying to setup my email client at home to point to my mail server. It sucessfully logs into my mailserver but whenever I try to send a message it says "Relay access denied." If I go through the /webmail/ I can sucessfully send emails out fine, however when I try to email sonoffett@yyy.com from my gmail I get the following error:
This is the Postfix program at host ns1.xxx.com.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The Postfix program
<web7_sonoffett@server1.example.com> (expanded from <sonoffett@yyy.com>): Host or
domain name not found. Name service error for name=server1.example.com
type=A: Host not found
This leads me to believe that maybe I forgot to change the hostname from "server1.example.com" somewhere but I've checked all the obvious places and it's updated.
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 = ns1.xxx.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = /etc/postfix/local-host-names
relayhost =
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
smptd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtpd_use_tls = yes
smtp_use_tls = yes
smtp_tls_key_file = /etc/postfix/ssl/smtpd.key
smtp_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtp_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtp_tls_loglevel = 1
smtp_tls_recieve_header = yes
smtp_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtp_tls_note_starttls_offer = yes
home_mailbox = Maildir/
mailbox_command =
virtual_maps = hash:/etc/postfix/virtusertable
local-host-names
localhost
ns1.xxx.com
localhost.ns1.xxx.com
localhost.xxx.com
www.yyy.com
www.xxx.com
yyy.com
xxx.com
hostname -f
ns1.xxx.com
virtusertable
sonoffett@www.yyy.com web7_sonoffett
web7_sonoffett@www.yyy.com web7_sonoffett
@www.yyy.com web7_sonoffett
sonoffett@yyy.com web7_sonoffett
web7_sonoffett@yyy.com web7_sonoffett
@yyy.com web7_sonoffett
sonoffett@www.xxx.com web2_sonoffett
web2_sonoffett@www.xxx.com web2_sonoffett
sonoffett@xxx.com web2_sonoffett
web2_sonoffett@xxx.com web2_sonoffett
dig mx yyy.com
; <<>> DiG 9.3.1 <<>> mx yyy.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 29803
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;yyy.com. IN MX
;; Query time: 9 msec
;; SERVER: 207.126.96.162#53(207.126.96.162)
;; WHEN: Sun May 14 09:12:20 2006
;; MSG SIZE rcvd: 33
Is it possible that I incorrectly did the mx record for the godaddy domain xxx.com?
dig mx xxx.com
admin@ns1:~$ dig mx xxx.com
; <<>> DiG 9.3.1 <<>> mx xxx.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4815
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;xxx.com. IN MX
;; ANSWER SECTION:
xxx.com. 3600 IN MX 10 mail.
;; AUTHORITY SECTION:
xxx.com. 3600 IN NS NS3.SECURESERVER.net.
xxx.com. 3600 IN NS NS4.SECURESERVER.net.
;; ADDITIONAL SECTION:
NS3.SECURESERVER.net. 21648 IN A 64.202.165.10
NS4.SECURESERVER.net. 21648 IN A 68.178.211.105
;; Query time: 111 msec
;; SERVER: 207.126.96.162#53(207.126.96.162)
;; WHEN: Sun May 14 09:15:11 2006
;; MSG SIZE rcvd: 138
are my MX records incorrect? If so, how do I correctly configure them for yyy.com in ISPConfig, or for godaddy DNS xxx.com?
Thanks for the help guys.
So I installed ubuntu and ISPConfig by following the how2forge guide and didn't run into any troubles. I am not sure if I set up my DNS entries though. I registered a domain at godaddy and edited the DNS entries so that NS1.xxx.com and NS2.xxx.com would both point to my server which is running two static ips, eth0 and eth0:0. I then registered another domain (yyy.com) and pointed it's name servers to NS1.xxx.com and NS2.xxx.com. I also added the site to my ISP config and when I go to yyy.com or www.yyy.com it correctly redirects.
Where I run into trouble is when trying to setup my email client at home to point to my mail server. It sucessfully logs into my mailserver but whenever I try to send a message it says "Relay access denied." If I go through the /webmail/ I can sucessfully send emails out fine, however when I try to email sonoffett@yyy.com from my gmail I get the following error:
This is the Postfix program at host ns1.xxx.com.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The Postfix program
<web7_sonoffett@server1.example.com> (expanded from <sonoffett@yyy.com>): Host or
domain name not found. Name service error for name=server1.example.com
type=A: Host not found
This leads me to believe that maybe I forgot to change the hostname from "server1.example.com" somewhere but I've checked all the obvious places and it's updated.
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 = ns1.xxx.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = /etc/postfix/local-host-names
relayhost =
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
smptd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtpd_use_tls = yes
smtp_use_tls = yes
smtp_tls_key_file = /etc/postfix/ssl/smtpd.key
smtp_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtp_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtp_tls_loglevel = 1
smtp_tls_recieve_header = yes
smtp_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtp_tls_note_starttls_offer = yes
home_mailbox = Maildir/
mailbox_command =
virtual_maps = hash:/etc/postfix/virtusertable
local-host-names
localhost
ns1.xxx.com
localhost.ns1.xxx.com
localhost.xxx.com
www.yyy.com
www.xxx.com
yyy.com
xxx.com
hostname -f
ns1.xxx.com
virtusertable
sonoffett@www.yyy.com web7_sonoffett
web7_sonoffett@www.yyy.com web7_sonoffett
@www.yyy.com web7_sonoffett
sonoffett@yyy.com web7_sonoffett
web7_sonoffett@yyy.com web7_sonoffett
@yyy.com web7_sonoffett
sonoffett@www.xxx.com web2_sonoffett
web2_sonoffett@www.xxx.com web2_sonoffett
sonoffett@xxx.com web2_sonoffett
web2_sonoffett@xxx.com web2_sonoffett
dig mx yyy.com
; <<>> DiG 9.3.1 <<>> mx yyy.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 29803
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;yyy.com. IN MX
;; Query time: 9 msec
;; SERVER: 207.126.96.162#53(207.126.96.162)
;; WHEN: Sun May 14 09:12:20 2006
;; MSG SIZE rcvd: 33
Is it possible that I incorrectly did the mx record for the godaddy domain xxx.com?
dig mx xxx.com
admin@ns1:~$ dig mx xxx.com
; <<>> DiG 9.3.1 <<>> mx xxx.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4815
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;xxx.com. IN MX
;; ANSWER SECTION:
xxx.com. 3600 IN MX 10 mail.
;; AUTHORITY SECTION:
xxx.com. 3600 IN NS NS3.SECURESERVER.net.
xxx.com. 3600 IN NS NS4.SECURESERVER.net.
;; ADDITIONAL SECTION:
NS3.SECURESERVER.net. 21648 IN A 64.202.165.10
NS4.SECURESERVER.net. 21648 IN A 68.178.211.105
;; Query time: 111 msec
;; SERVER: 207.126.96.162#53(207.126.96.162)
;; WHEN: Sun May 14 09:15:11 2006
;; MSG SIZE rcvd: 138
are my MX records incorrect? If so, how do I correctly configure them for yyy.com in ISPConfig, or for godaddy DNS xxx.com?
Thanks for the help guys.