View previous topic :: View next topic |
Author |
Message |
speedstic n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Feb 2006 Posts: 16
|
Posted: Tue May 01, 2007 7:10 pm Post subject: Server not receiving mail |
|
|
Hello All,
I've been trying to setup an email server (postfix, cyrus-sasl, mysql) for sometime now and I think i'm getting close.
However, when i try to send an email to my domain, it doesn't arrive.
But then i try to telnet in to the server and send an email that way and it works.
I've telnet'd from inside and outside my network.
From the /var/log/messages, I can't even see that mail reaches the server and is rejected,
How can I check where the problem lies?
Any help would be appreciated.
If it helps, here is my main.cf:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
myhostname = mail.sproon.com
mydomain = sproon.com
myorigin = $mydomain
inet_interfaces = all
mydestination = mail, mail.sproon.com, mail.$mydomain, $myhostname, localhost.$mydomain, localhost, $transport_maps
unknown_local_recipient_reject_code = 550
mynetworks = 192.168.123.0/28, 127.0.0.0/8, 70.52.128.2
relay_domains = $mydestination
alias_maps = mysql:/etc/postfix/mysql-aliases.cf
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
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = /usr/share/doc/postfix-2.3.6/html
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix-2.3.6/readme
home_mailbox = .maildir/
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
local_transport = local
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
virtual_transport = virtual
virtual_mailbox_domains = sproon.com
virtual_minimum_uid = 1000
virtual_gid_maps = static:1006
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_uid_maps = static:1002
virtual_mailbox_base = /
transport_maps = mysql:/etc/postfix/mysql-transport.cf
broken_sasl_auth_clients = yes
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
check_relay_domains
smtpd_use_tls = yes
smtpd_tls_key_file = /etc/postfix/newkey.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[/b]
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Truin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Jul 2006 Posts: 54
|
Posted: Tue May 01, 2007 8:12 pm Post subject: Re: Server not receiving mail |
|
|
speedstic wrote: |
However, when i try to send an email to my domain, it doesn't arrive.
|
Do you receive any NDR back explaining why the mail didn't make it?
speedstic wrote: |
But then i try to telnet in to the server and send an email that way and it works.
I've telnet'd from inside and outside my network.
|
Are you telneting to port 25 and issuing smtp commands, or are you just using the 'mail' or similar client from command line?
speedstic wrote: |
From the /var/log/messages, I can't even see that mail reaches the server and is rejected,
How can I check where the problem lies?
|
What about /var/log/maillog? Postfix might be logging somewhere other than 'messages'. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mudrii l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 26 Jun 2003 Posts: 789 Location: Singapore
|
Posted: Wed May 02, 2007 7:16 am Post subject: |
|
|
check your firewall and check for listen conection too _________________ www.gentoo.ro |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
speedstic n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Feb 2006 Posts: 16
|
Posted: Wed May 02, 2007 2:59 pm Post subject: |
|
|
After 1 day i received a message saying the server is not responding.
I telnet in using my PPC and 1XEV-DO connection to mail.sproon.com port 25, I did the:
mail from:<a@a.com>
rctp to:<adam@sproon.com>
commands as well as the ehlo and helo commands, all work just fine.
I don't have a /var/log/maillog, i didn't explicitly specify logging in main.cf
My router has port 25 forwarded to the right PC.
I use this PC as a web server as well and my /etc/hosts looks like this.
127.0.0.1 web.sproon.com web mail.sproon.com mail localhost.localdomain localhost
Could this be the cause of the problem? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Kosmas Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/TV Stars/spock1.jpg)
Joined: 14 Sep 2006 Posts: 280 Location: Greece
|
Posted: Wed May 02, 2007 3:16 pm Post subject: |
|
|
Hello speedstic,
First of all for some mail to reach your mail server for the domain proon.com you have to have an MX record in the DNS of your domain pointing to the real (internet) mail server's address. This means that when I do Code: | dig -t MX proon.com | there should be an entry pointing to the real internet address you have. If you do not use this as an internet mail server then the problem is elsewhere. Now after making sure that the DNS record for your mail server is correct you should give it some time (2-6 hours) for the DNS caches around the world to synchronize and make your MX record known.
After that you should check from the internet side (outside your lan) that your server responds to port 25 on the given internet address.
If all the above works correctly you should be receiving mail normally from the internet.
Hope I explained the right thing to you.
Kosmas. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
speedstic n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Feb 2006 Posts: 16
|
Posted: Wed May 02, 2007 3:47 pm Post subject: |
|
|
I have an MX record.
I can also access the server via telnet on port 25 from outside the network.
and use smtp commands.
using dnsreport.com, it appears that everything is fine,
unfortunately for me it isn't ![Crying or Very sad :cry:](images/smiles/icon_cry.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Wed May 02, 2007 4:23 pm Post subject: |
|
|
Sort out your syslog so you can see what Postfix is doing. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Truin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Jul 2006 Posts: 54
|
Posted: Thu May 03, 2007 8:37 pm Post subject: |
|
|
speedstic wrote: | I have an MX record.
I can also access the server via telnet on port 25 from outside the network.
and use smtp commands.
using dnsreport.com, it appears that everything is fine,
unfortunately for me it isn't ![Crying or Very sad :cry:](images/smiles/icon_cry.gif) |
I sent an email or two from my gmail account. I'll let you know if I get any NDRs. I definitely think it's time to enable some logging, and check the output. From a user perspective, I'm not sure how much more trouble shooting can be done. It's really time to hit this from an admin perspective, and start checking out some log data to see what your MTA is doing. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|