Cant send emails in Postfix

Discussion in 'Installation/Configuration' started by Jay2309kown, Apr 27, 2018.

  1. Jay2309kown

    Jay2309kown New Member

    Hello,
    I can't send emails using Postfix. I would like to use the port 587 than 25.

    to=<@hotmail.com>, relay=none, delay=59728, delays=59668/0.08/60/0, dsn=4.4.1, status=deferred (connect to hotmail-com.olc.protection.outlook.com[104.47.40.33]:25: Connection timed out)
    connect to hotmail-com.olc.protection.outlook.com[104.47.41.33]:25: Connection timed out
    connect to hotmail-com.olc.protection.outlook.com[104.47.40.33]:25: Connection timed out
    to=<@hotmail.com>, relay=none, delay=59728, delays=59668/0.08/60/0, dsn=4.4.1, status=deferred (connect to hotmail-com.olc.protection.outlook.com[104.47.40.33]:25: Connection timed out)
    connect to hotmail-com.olc.protection.outlook.com[104.47.41.33]:25: Connection timed out
    connect to hotmail-com.olc.protection.outlook.com[104.47.40.33]:25: Connection timed out


    Here is my master conf.


    submission inet n - - - - smtpd

    -o syslog_name=postfix/submission

    -o smtpd_tls_security_level=encrypt

    -o smtpd_sasl_auth_enable=yes

    -o smtpd_client_restrictions=permit_sasl_authenticated,reject

    -o smtpd_recipient_restrictions=reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_mynetworks,permit_sasl_authenticated,reject

    -o content_filter=smtp-amavis:[127.0.0.1]:10026
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Did sending work before you changed the configuration?
     
  3. Jay2309kown

    Jay2309kown New Member

    No. I can only receive emails. I was never able to send.
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What operating system? Are you using ISPConfig, which version?
    What log is the one you pasted in the original message? It does not look like postix log in /var/log/mail.log, which I would look at first.
    Are all adresses failing when sending or only to that one address?
     
  5. Jay2309kown

    Jay2309kown New Member

    I am using Ubuntu; No. Im not using ISPConfig. Never heard of it. Yes, that is a /var/long.mail.log

    Only one IP.
     
  6. Jeremy007

    Jeremy007 Member

    Also had a similar problem. Contact your server company and make sure they don't have that port blocked.
     
  7. Jay2309kown

    Jay2309kown New Member

    even on port 587? when i hit the submit button the message is sent over 25 not 587. Nothing is going out on 587. thats my issue.thanks
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    The postfix conf you posted looks like nothing is set up to change the default port. I'm confused as to what is the question you want answered?
    In case you can not use port 25 for outgoing e-mails, you can use relay host. Use the relay_host setting in postfix. Is that what you wanted to know?
     
  9. Jay2309kown

    Jay2309kown New Member

    I uploaded my main and master file. I wasn't aware I had to relay my connection to use port 587. I m trying to setup a mail server using one server with clients connecting to that server.
     

    Attached Files:

  10. Jay2309kown

    Jay2309kown New Member

    It was the ISP blocking port 25., thanks
     

Share This Page