PDA

View Full Version : Can't receive email


merlincc
5th December 2006, 01:47
I have followed the perfect setup for fedora core 6. I have setup a site and an email address. I have tested telneting to localhost and all test pass.

I can connect to webmail and I sent a test messgae to my work email account. It worked just fine.

I then sent an email from my work email account to my new email address and I get this in the maillog:

Dec 4 17:28:16 kelly postfix/smtpd[3392]: NOQUEUE: reject: RCPT from sp-internet-ext-ply.uhc.com[198.203.175.175]: 554 5.7.1 <john@4thegreens.com>: Relay access denied; from=<john_green@uhc.com> to=<john@4thegreens.com> proto=ESMTP helo=<firewall-cluster.uhc.com>

I have searched the forums and have tried several things but nothing works. I have tried removing the site and recreating. I have redone the postfix stuff from the perfect setup guide. Nothing works.

Where can I look now?

Thanks.

till
5th December 2006, 11:19
Have you created a website www.4thegreens.com on your server that has a co-domain 4thegreens.com (with empty host field)?

merlincc
5th December 2006, 15:51
Have you created a website www.4thegreens.com on your server that has a co-domain 4thegreens.com (with empty host field)?

Yes I have.

ISP Site -> Basis
Hostname: www
Domain: 4thegreens.com
IP Address: 192.168.0.60 (internal IP)

ISP Site -> Co-Domains
IP: 192.168.0.60
Hostname:
Domain: 4thegreens.com

[root@kelly ~]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:mysql *:* LISTEN 1763/mysqld
tcp 0 0 *:sunrpc *:* LISTEN 1472/portmap
tcp 0 0 *:hosts2-ns *:* LISTEN 2124/ispconfig_http
tcp 0 0 192.168.0.70:domain *:* LISTEN 3542/named
tcp 0 0 kelly.4thegreens.com:domain *:* LISTEN 3542/named
tcp 0 0 localhost.localdomai:domain *:* LISTEN 3542/named
tcp 0 0 localhost.localdomain:ipp *:* LISTEN 1648/cupsd
tcp 0 0 *:824 *:* LISTEN 1490/rpc.statd
tcp 0 0 *:smtp *:* LISTEN 9159/master
tcp 0 0 localhost.localdomain:rndc *:* LISTEN 3542/named
tcp 1 0 kelly.4thegreens.com:58637 fpserv.linux.duke.edu:http CLOSE_WAIT 1956/python
tcp 1 0 kelly.4thegreens.com:51842 ie.freshrpms.net:http CLOSE_WAIT 1956/python
tcp 1 0 kelly.4thegreens.com:56017 download.fedora.redhat:http CLOSE_WAIT 1956/python
tcp 0 0 *:imaps *:* LISTEN 1795/dovecot
tcp 0 0 *:pop3s *:* LISTEN 1795/dovecot
tcp 0 0 *:pop3 *:* LISTEN 1795/dovecot
tcp 0 0 *:imap *:* LISTEN 1795/dovecot
tcp 0 0 *:http *:* LISTEN 2298/httpd
tcp 0 0 *:ftp *:* LISTEN 2433/proftpd: (acce
tcp 0 0 *:ssh *:* LISTEN 1656/sshd
tcp 0 0 kelly.4thegreens.com:ipp *:* LISTEN 1648/cupsd
tcp 0 0 kelly.4thegreens.com:rndc *:* LISTEN 3542/named
tcp 0 0 *:https *:* LISTEN 2298/httpd
tcp 0 0 kelly.4thegreens.com:http scrub2.mms.search.scd:48940 TIME_WAIT -
tcp 0 0 kelly.4thegreens.com:http scrub2.mms.search.scd:48788 TIME_WAIT -
tcp 0 144 kelly.4thegreens.com:ssh ::ffff:192.168.0.5:4140 ESTABLISHED 16356/0
tcp 0 0 kelly.4thegreens.com:http scrub2.mms.search.scd:48861 TIME_WAIT -
[root@kelly ~]#

[root@kelly ~]# more /etc/postfix/main.cf
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.3.3/samples
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
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
mynetworks = 127.0.0.0/8
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
[root@kelly ~]#

Thanks for the help.

falko
5th December 2006, 19:41
virtual_maps and mydestination are wrong in your main.cf. Please run
postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
postconf -e 'mydestination = /etc/postfix/local-host-names'
/etc/init.d/postfix restart

merlincc
6th December 2006, 00:50
virtual_maps and mydestination are wrong in your main.cf. Please run
postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
postconf -e 'mydestination = /etc/postfix/local-host-names'
/etc/init.d/postfix restart

This has fixed the problem.

Now on to testing!

Thanks for the help and the quick replies!