PDA

View Full Version : I can receive mail but can not send


cruz
18th August 2007, 03:41
I setup a site and created a email account. I sent email to my hotmail address and it told me it sent the email, but I did not receive it. Then I went to my hotmail account and sent it and received it in the new email account I created. Can you please let me know what to check? I am getting ready to install a php script and want to use the mail for the site. I a a bit new to much of this. thanks for the great info as always.

falko
19th August 2007, 14:38
Are there any errors in your mail log? If not, please make surethat you have an SPF record for your domain and that your mailserver isn't blacklisted: http://www.mxtoolbox.com/blacklists.aspx

cruz
20th August 2007, 01:23
I found this in the mail log.Aug 19 09:25:44 server1 postfix/qmgr[6465]: 6D7EC3DC744: from=<web8_apostolichearts@example.com>, size=1437, nrcpt=1 (queue active)
Aug 19 09:26:15 server1 postfix/smtp[24425]: connect to mx2.hotmail.com[65.54.245.40]: Connection timed out (port 25)
Aug 19 09:26:45 server1 postfix/smtp[24425]: connect to mx4.hotmail.com[65.54.245.104]: Connection timed out (port 25)
Aug 19 09:27:15 server1 postfix/smtp[24425]: connect to mx2.hotmail.com[65.54.244.168]: Connection timed out (port 25)
Aug 19 09:27:45 server1 postfix/smtp[24425]: connect to mx1.hotmail.com[65.54.244.8]: Connection timed out (port 25)
Aug 19 09:28:15 server1 postfix/smtp[24425]: connect to mx4.hotmail.com[65.54.244.104]: Connection timed out (port 25)
Aug 19 09:28:15 server1 postfix/smtp[24425]: 6D7EC3DC744: to=<larry_ferraro@hotmail.com>, relay=none, delay=139164, delays=139013/0.04/150/0, dsn=4.4.1, status=deferred (connect to mx4.hotmail.com[65.54.244.104]: Connection timed out)
Aug 19 09:42:24 server1 postfix/qmgr[6465]: 347013DC714: from=<>, size=3410, nrcpt=1 (queue active)
Aug 19 09:42:24 server1 postfix/qmgr[6465]: 4D8BE3DC726: from=<>, size=2858, nrcpt=1 (queue active)
Aug 19 09:42:54 server1 postfix/smtp[25922]: connect to example.com[208.77.188.166]: Connection timed out (port 25)
Aug 19 09:42:54 server1 postfix/smtp[25923]: connect to example.com[208.77.188.166]: Connection timed out (port 25)
Aug 19 09:42:54 server1 postfix/smtp[25923]: 4D8BE3DC726: to=<web8_apostolichearts@example.com>, relay=none, delay=301570, delays=301540/0.03/30/0, dsn=4.4.1, status=deferred (connect to example.com[208.77.188.166]: Connection timed out)
Aug 19 09:42:54 server1 postfix/smtp[25922]: 347013DC714: to=<web8_apostolichearts@example.com>, relay=none, delay=301480, delays=301450/0.04/30/0, dsn=4.4.1, status=deferred (connect to example.com[208.77.188.166]: Connection timed out)
Aug 19 09:59:04 server1 postfix/qmgr[6465]: 18B663DC717: from=<web8_apostolichearts@example.com>, size=781, nrcpt=1 (queue active)
Aug 19 09:59:04 server1 postfix/qmgr[6465]: 142263DC729: from=<web8_apostolichearts@example.com>, size=779, nrcpt=1 (queue active)
Aug 19 09:59:04 server1 postfix/qmgr[6465]: DBDB33DC735: from=<>, size=2867, nrcpt=1 (queue active)
Aug 19 09:59:34 server1 postfix/smtp[27497]: connect to example.com[208.77.188.166]: Connection timed out (port 25)ug 19 09:25:44 server1 postfix/qmgr[6465]: 6D7EC3DC744: from=<web8_apostolichearts@example.com>, size=1437, nrcpt=1 (queue active)
Aug 19 09:26:15 server1 postfix/smtp[24425]: connect to mx2.hotmail.com[65.54.245.40]: Connection timed out (port 25)
Aug 19 09:26:45 server1 postfix/smtp[24425]: connect to mx4.hotmail.com[65.54.245.104]: Connection timed out (port 25)
Aug 19 09:27:15 server1 postfix/smtp[24425]: connect to mx2.hotmail.com[65.54.244.168]: Connection timed out (port 25)
Aug 19 09:27:45 server1 postfix/smtp[24425]: connect to mx1.hotmail.com[65.54.244.8]: Connection timed out (port 25)
Aug 19 09:28:15 server1 postfix/smtp[24425]: connect to mx4.hotmail.com[65.54.244.104]: Connection timed out (port 25)
Aug 19 09:28:15 server1 postfix/smtp[24425]: 6D7EC3DC744: to=<larry_ferraro@hotmail.com>, relay=none, delay=139164, delays=139013/0.04/150/0, dsn=4.4.1, status=deferred (connect to mx4.hotmail.com[65.54.244.104]: Connection timed out)
Aug 19 09:42:24 server1 postfix/qmgr[6465]: 347013DC714: from=<>, size=3410, nrcpt=1 (queue active)
Aug 19 09:42:24 server1 postfix/qmgr[6465]: 4D8BE3DC726: from=<>, size=2858, nrcpt=1 (queue active)
Aug 19 09:42:54 server1 postfix/smtp[25922]: connect to example.com[208.77.188.166]: Connection timed out (port 25)
Aug 19 09:42:54 server1 postfix/smtp[25923]: connect to example.com[208.77.188.166]: Connection timed out (port 25)
Aug 19 09:42:54 server1 postfix/smtp[25923]: 4D8BE3DC726: to=<web8_apostolichearts@example.com>, relay=none, delay=301570, delays=301540/0.03/30/0, dsn=4.4.1, status=deferred (connect to example.com[208.77.188.166]: Connection timed out)
Also I had not created a spf record for the mail. I created on with the spf wizared on the noip.com site. I don't understand the port 25 error in the log. I have opened ports 110 and 25 for the mail on my router.

alexillsley
20th August 2007, 15:11
----- expired ----

falko
20th August 2007, 20:05
Have you checked if your server is blacklisted? http://www.mxtoolbox.com/blacklists.aspx

cruz
20th August 2007, 23:09
I do not own example.com. can you please send me info on were and how to change this. Do I change it to the domain of the server? (the name I entered when I set up the server.) or do I change it to the domain of the site I am creating in ipconfig? I checked with blacklist. He told me if I have not sent out mail from the server then I can not be on a blacklist. I have never recived mail from any of the mails I have sent from the server. Maybe it is because of this example.com issue. Thanks for your help.

falko
21st August 2007, 17:50
You can be blacklisted, no matter if you sent emails or not. Please check on http://www.mxtoolbox.com/blacklists.aspx (I mean it)...

To change your hostname - which distribution do you use?

cruz
21st August 2007, 23:00
I am using Debian. I went with Debian because I was having people trying to brute force the box, but I can not get fail2ban to work on the server. I was wanting to do a diffrent setup before I install this script. What one do you recommend for amatures to use? Something were there is some kind of software to stop the brute force. and is there a way to have graffics set up so I can work in graffic or the console?
It is on a blacklist. I think it is because of the dynamic ip. I will have to change that after I reload or use a working external email account.

falko
22nd August 2007, 20:04
I am using Debian. I went with Debian because I was having people trying to brute force the box, but I can not get fail2ban to work on the server. I was wanting to do a diffrent setup before I install this script. What one do you recommend for amatures to use?You could try DenyHosts then: http://www.howtoforge.com/preventing_ssh_dictionary_attacks_with_denyhosts (but it'S for SSH only)


It is on a blacklist. I think it is because of the dynamic ip.
Almost all dynamic IP addresses are blacklisted nowadays. You could relay your emails through another mailserver then: http://www.howtoforge.com/postfix_relaying_through_another_mailserver

cruz
22nd August 2007, 20:42
If I set up the mail like this, will it show as the domain on the receiving end(admin@apostolichearts.com)?

falko
23rd August 2007, 20:29
Relaying doesn't change the sender or recipient addresses.

cruz
28th August 2007, 01:25
I figured out why my mail was saying example.com. On the install (Debian ferfect setup) on the mail, there is a string to be entered. I was not aware I was suppose to change it to my domain. Might want to make a note next to it for people like me. thankspostconf -e 'smtpd_tls_auth_only = no'
postconf -e 'smtp_use_tls = yes'
postconf -e 'smtpd_use_tls = yes'
postconf -e 'smtp_tls_note_starttls_offer = yes'
postconf -e 'smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key'
postconf -e 'smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt'
postconf -e 'smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem'
postconf -e 'smtpd_tls_loglevel = 1'
postconf -e 'smtpd_tls_received_header = yes'
postconf -e 'smtpd_tls_session_cache_timeout = 3600s'
postconf -e 'tls_random_source = dev:/dev/urandom'
postconf -e 'myhostname = server1.example.com'