I can receive mail but can not send

Discussion in 'Server Operation' started by cruz, Aug 18, 2007.

  1. cruz

    cruz New Member

    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.
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. cruz

    cruz New Member

    checking what you told me

    I found this in the mail log.
    HTML:
    Aug 19 09:25:44 server1 postfix/qmgr[6465]: 6D7EC3DC744: from=<[email protected]>, 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=<[email protected]>, 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=<[email protected]>, 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=<[email protected]>, 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=<[email protected]>, size=781, nrcpt=1 (queue active)
    Aug 19 09:59:04 server1 postfix/qmgr[6465]: 142263DC729: from=<[email protected]>, 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=<[email protected]>, 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=<[email protected]>, 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=<[email protected]>, 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.
     
  4. alexillsley

    alexillsley New Member

    ----- expired ----
     
    Last edited: Nov 15, 2010
  5. falko

    falko Super Moderator Howtoforge Staff

  6. cruz

    cruz New Member

    example.com

    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.
     
  7. falko

    falko Super Moderator Howtoforge Staff

  8. cruz

    cruz New Member

    change hostname

    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.
     
  9. falko

    falko Super Moderator Howtoforge Staff

    You could try DenyHosts then: http://www.howtoforge.com/preventing_ssh_dictionary_attacks_with_denyhosts (but it'S for SSH only)

    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
     
  10. cruz

    cruz New Member

    good info

    If I set up the mail like this, will it show as the domain on the receiving end([email protected])?
     
  11. falko

    falko Super Moderator Howtoforge Staff

    Relaying doesn't change the sender or recipient addresses.
     
  12. cruz

    cruz New Member

    reason for example.com

    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. thanks
    HTML:
    postconf -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'
     

Share This Page