Results 1 to 2 of 2

Thread: mailx wrong port in use

  1. #1
    Join Date
    Jun 2008
    Location
    South-West France
    Posts
    1,036

    Default mailx wrong port in use

    Helo.

    Using this mailx command :
    Code:
    mailx -vvv 
       -r "user_install@mydomain.net" 
       -s "Subject: MAILX - FULL SMTP port 587 - FULLNAME - TEST to superlinux" 
       -S smtp=mail.mydomain.net:587 
       superlinux@mydomain.net  <<< "Some text"
    I am expecting to use port 587 on my mail server on the local network.
    But it is port 25 which is in use :
    Code:
    Resolving host mail.mydomain.net . . . done.
    Connecting to 192.168.130.80:25 . . . connected.
    220 mydomain  ESMTP
    >>> HELO ASUS-G750JZ.mydomain.net
    250 ASUS-G75VW
    >>> MAIL FROM:<user_install@mydomain.net>
    250 2.1.0 Ok
    >>> RCPT TO:<superlinux@mydomain.net>
    250 2.1.5 Ok
    >>> DATA
    354 End data with <CR><LF>.<CR><LF>
    >>> .
    250 2.0.0 Ok: queued as 92B27260BFD
    >>> QUIT
    221 2.0.0 Bye
    Both port are enabled.

    Here is /etc/postfix/master.cf
    Code:
    smtp      inet  n       -       n       -       -       smtpd
    submission inet n       -       n       -       -       smtpd
      -o syslog_name=postfix/submission
      -o smtpd_sasl_auth_enable=yes
      -o smtpd_reject_unlisted_recipient=no
      -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
      -o milter_macro_daemon_name=ORIGINATING
    pickup    unix  n       -       n       60      1       pickup
    cleanup   unix  n       -       n       -       0       cleanup
    qmgr      unix  n       -       n       300     1       qmgr
    tlsmgr    unix  -       -       n       1000?   1       tlsmgr
    rewrite   unix  -       -       n       -       -       trivial-rewrite
    bounce    unix  -       -       n       -       0       bounce
    defer     unix  -       -       n       -       0       bounce
    trace     unix  -       -       n       -       0       bounce
    verify    unix  -       -       n       -       1       verify
    flush     unix  n       -       n       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    proxywrite unix -       -       n       -       1       proxymap
    smtp      unix  -       -       n       -       -       smtp
    relay     unix  -       -       n       -       -       smtp
    showq     unix  n       -       n       -       -       showq
    error     unix  -       -       n       -       -       error
    retry     unix  -       -       n       -       -       error
    discard   unix  -       -       n       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       n       -       -       lmtp
    anvil     unix  -       -       n       -       1       anvil
    scache    unix  -       -       n       -       1       scache
    I may miss somethings.

    Any help is welcome.
    Thanks for helping. JCD
    __________
    server leap 15.0 -- ASUS g75vw KDE leap 15.0 -- ASUS g750JZ Optimus KDE leap 15.1 -- acer aspire s13 win 10 home -- HP Omen win 10 home - scan EPSON V500 - Brother HL2250DN - Samsung CLP-325W

  2. #2
    Join Date
    Jun 2008
    Location
    South-West France
    Posts
    1,036

    Default {SOLVED]: mailx wrong port in use

    Bad parameters was left in sender's /etc/mail.rc

    Code:
    set smtp=smtp://mail.mydomain.net:25
    Thread is closed
    Thanks for helping. JCD
    __________
    server leap 15.0 -- ASUS g75vw KDE leap 15.0 -- ASUS g750JZ Optimus KDE leap 15.1 -- acer aspire s13 win 10 home -- HP Omen win 10 home - scan EPSON V500 - Brother HL2250DN - Samsung CLP-325W

Posting Permissions

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