Results 1 to 2 of 2

Thread: Trouble Sending Mail Via Telnet

  1. #1
    Join Date
    Nov 2006
    Location
    Boston, MA
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Trouble Sending Mail Via Telnet

    Am trying to send a test email to my gmail account. I am able to telnet to localhost 25. Everything seems to go ok, but the email never gets sent. This is the output from /var/log/mail.log

    Code:
    Aug 28 21:32:31 2fast2furious postfix/smtpd[3214]: connect from localhost[127.0.0.1]
    Aug 28 21:33:22 2fast2furious postfix/smtpd[3214]: 3793FA102C: client=localhost[127.0.0.1]
    Aug 28 21:33:39 2fast2furious postfix/cleanup[3218]: 3793FA102C: message-id=<20180829013322.3793FA102C@2fast2furious.fios-router.home>
    Aug 28 21:33:39 2fast2furious postfix/qmgr[3210]: 3793FA102C: from=<user1@example.com>, size=358, nrcpt=1 (queue active)
    Aug 28 21:33:41 2fast2furious postfix/smtpd[3214]: disconnect from localhost[127.0.0.1] helo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
    Aug 28 21:34:09 2fast2furious postfix/smtp[3219]: connect to gmail-smtp-in.l.google.com[172.217.197.27]:25: Connection timed out
    Aug 28 21:34:09 2fast2furious postfix/smtp[3219]: connect to gmail-smtp-in.l.google.com[2607:f8b0:400d:c0f::1b]:25: Network is unreachable
    Aug 28 21:34:39 2fast2furious postfix/smtp[3219]: connect to alt1.gmail-smtp-in.l.google.com[64.233.186.26]:25: Connection timed out
    Aug 28 21:34:39 2fast2furious postfix/smtp[3219]: connect to alt1.gmail-smtp-in.l.google.com[2800:3f0:4003:c00::1b]:25: Network is unreachable
    Aug 28 21:35:09 2fast2furious postfix/smtp[3219]: connect to alt2.gmail-smtp-in.l.google.com[74.125.193.27]:25: Connection timed out
    Aug 28 21:35:09 2fast2furious postfix/smtp[3219]: 3793FA102C: to=<myemailaddress@gmail.com>, relay=none, delay=121, delays=31/0.01/90/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[74.125.193.27]:25: Connection timed out)
    This is what I did:
    Code:
    pat@2fast2furious:~$ telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    220 2fast2furious.fios-router.home ESMTP Postfix (Ubuntu)
    HELO localhost
    250 2fast2furious.fios-router.home
    MAIL FROM: user1@example.com
    250 2.1.0 Ok
    RCPT TO: myemailaddress@gmail.com
    250 2.1.5 Ok
    DATA
    354 End data with <CR><LF>.<CR><LF>
    This is a test email.
    
    .
    250 2.0.0 Ok: queued as 3793FA102C
    quit
    221 2.0.0 Bye
    Connection closed by foreign host.
    Attached is what I have in /etc/postfix/main.cf. Am I missing or do I need to change anything in it?
    Attached Files Attached Files
    Last edited by DuckHook; August 29th, 2018 at 03:50 AM. Reason: Added [CODE] tags, removed interfering formatting
    Apevia X-Cruiser | AMD Phenom II X4 940 Deneb 3.0GHz | Gigabyte 790X-UD4P | 4GB G Skill RAM | WD 320GB HD | NVIDIA 8600GT | PC Power & Cooling 500W Silencer | Pioneer CD/DVD | Ubuntu 11.04

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Trouble Sending Mail Via Telnet

    Your provider probably blocks outbound SMTP connections as an anti-spam measure. Your system is blocked from sending the mail to gmail.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •