The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Submission message on port 587 without smtp authentication

Discussion in 'E-mail Discussions' started by danielvasc, Jun 11, 2014.

  1. danielvasc

    danielvasc Active Member

    Joined:
    Mar 5, 2014
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Need to send messages from a remote host without authentication. When I try to send, I get the following error:

    2014-06-11 17:08:39 H=(MYPC-05) [192.8.19.1.]:53816 F=<teste@domain.com> rejected RCPT <myuser@otherdomain.com>: SMTP AUTH is required for message submission on port 587

    For this to work, I must add the IP address "192.8.19.1" in / etc / relayhosts. The problem is that I have 300 machines that are sending from the same account (teste@domain.com), and these IP addresses are dynamic and different subnets, it is unfeasible.

    I wonder if it is possible, the same way I did with the ip address, authorize a user, via the / etc / relayhostsusers.
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    This is such a bad idea, I'm not even going to tell you how to do it. If you can't find the sense to even Google this (where the solution is listed within the first three results), I get the feeling you wouldn't have the sense to secure this properly, either.


    You'd be better off listing your IPs in /etc/alwaysrelay (which is more static than /etc/relayhosts, which expires), than having an open relay server and contributing to spam problems on the Internet. Or even better, use authentication.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate a little on why you need to send email without authentication? It's possible there is an alternative we can suggest based on your requirements.

    Thank you.
     
  4. danielvasc

    danielvasc Active Member

    Joined:
    Mar 5, 2014
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    The software that makes sending messages does not have the option to authenticate via smtp.

    Is there a way to make just a given e-mail can make sending messages from my server?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  6. danielvasc

    danielvasc Active Member

    Joined:
    Mar 5, 2014
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    a desktop application...
     
  7. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    What's the name of the application?
     
  8. danielvasc

    danielvasc Active Member

    Joined:
    Mar 5, 2014
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    It is an application of a private company that develops software here in my town.
     
  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I don't want this to sound too awfully rough here, but:

    This reads like either the script is poorly written and in that case you need to go back to them about it, or it's a spam sending script you're trying to get working. And if it's the latter, well, good luck with that.

    I concur with vanessa's comments above. Bad idea.
     
  10. danielvasc

    danielvasc Active Member

    Joined:
    Mar 5, 2014
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    When I use a gmail account, it works normally, and when I use an account of a domain of my cpanel server, gives error:

    SMTP AUTH is required for message submission on port 587
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Google requires authentication in order to send email. How is the configuration different in your script when you use a Google mail account instead of an email account on your cPanel server? For instance, when you state "When I use a gmail account", please clarify and provide as many details as possible.

    Thank you.
     
  12. danielvasc

    danielvasc Active Member

    Joined:
    Mar 5, 2014
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Not a script, but a setup screen where you can enter your username and password. As I said, when I use gmail credentials, it works normally, but when I use the Cpanel account, returns that error.

    Look at the screen configuration:

    http://tcheturbo.com.br/config_mail.jpg
     
    #12 danielvasc, Jun 17, 2014
    Last edited: Jun 17, 2014
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The screenshot you provided indicates the ability to authenticate is possible. Is this a different application than the one you referenced initially, that did not require authentication? What is output to /var/log/maillog when authentication fails?

    Thank you.
     
  14. danielvasc

    danielvasc Active Member

    Joined:
    Mar 5, 2014
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Code:
    root@cpanel [~]# tail -f /var/log/exim_mainlog | grep stche
    2014-06-17 14:27:27 H=(Alexandre) [187.108.17.141]:52632 F=<nfeteste@domain.com.br> rejected RCPT <suporte@domain.com.br>: SMTP AUTH is required for message submission on port 587
    2014-06-17 14:29:29 1WwxCK-0005FY-Ms <= nfeteste@domain.com.br H=(Alexandre) [187.108.17.141]:52748 P=esmtp S=390 T="te" for suporte@domain.com.br 
     
  15. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It looks like an issue with the application you are using. You will need to contact the developer or support for that application and let them know it's not sending authentication details properly, or attempt to reproduce the issue with an email client such as Thunderbird.

    Thank you.
     
  16. danielvasc

    danielvasc Active Member

    Joined:
    Mar 5, 2014
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Using account of Cpanel
    /http://tcheturbo.com.br/config_acc_cpanel.jpg

    Error:
    Code:
    root@cpanel [~]# grep 187.108.17.141 /var/log/exim_mainlog
    2014-06-17 14:27:27 SMTP connection from [187.108.17.141]:52632 (TCP/IP connection count = 6)
    2014-06-17 14:27:27 H=(Alexandre) [187.108.17.141]:52632 Warning: Sender rate 1.0 / 1h
    2014-06-17 14:27:27 H=(Alexandre) [187.108.17.141]:52632 F=<nfeteste@domain.com.br> rejected RCPT <suporte@domain.com.br>: SMTP AUTH is required for message submission on port 587
    2014-06-17 14:27:27 SMTP connection from (Alexandre) [187.108.17.141]:52632 closed by DROP in ACL

    Using Gmail Account
    /http://tcheturbo.com.br/config_gmail.jpg

    The message has been sent.
     
  17. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Per my last response, if you are positive it's not a problem with the application, please try reproducing the issue with an email client such as Thunderbird and let us know if you experience the same result.

    Thank you.
     
  18. danielvasc

    danielvasc Active Member

    Joined:
    Mar 5, 2014
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Same error in thunderbird:
    /http://tcheturbo.com.br/thunderbird_fail.PNG

    Error log:

    Code:
    root@cpanel [~]# tail -f /var/log/exim_mainlog | grep stche
    2014-06-17 15:17:44 H=([192.168.0.78]) [187.108.17.28]:58950 F=<nfeteste@domain.com.br> rejected RCPT <suporte@domain.com.br>: SMTP AUTH is required for message submission on port 587
     
  19. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  20. danielvasc

    danielvasc Active Member

    Joined:
    Mar 5, 2014
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    /http://tcheturbo.com.br/config1.PNG
    /http://tcheturbo.com.br/smtp_config.PNG
     
Loading...

Share This Page