Home > centos > Exim 4.63 on CentOS: sending mail from server app through localhost - failed on authentication

Exim 4.63 on CentOS: sending mail from server app through localhost - failed on authentication

March 21Hits:1
Advertisement

I am trying to send mail from my java application simply connecting on localhost:25 with empty login and password (I have to state them due to API).

Mail sending is failed then with

2010-03-21 12:20:01 login authenticator failed for localhost [127.0.0.1]: 535 Incorrect authentication data 

On the other hand, when I am sending mail with telnet by:

$ telnet localhost 25 ehlo ... mail from:... rcpt to:... data: ... 

it works perfectly.

Any clues?

Answers

It seems you are using a bad username/password. You are not authenticating with telnet, that's why it works.

To test with a fixed username/password combination, you can add this authenticator (assuming you use PLAIN)

fixed_plain:
  driver = plaintext
  public_name = PLAIN
  server_prompts = :
  server_condition = \
    ${if and {{eq{$auth2}{username}}{eq{$auth3}{mysecret}}}}
  server_set_id = $auth2

Change username and mysecret to your needs.

Here is the relevant documentation.

To accept from localhost w/o password, add a line like the following to the correct ACL:

accept host = localhost

Tags:centos, exim

Related Articles

  • Exim 4.63 on CentOS: sending mail from server app through localhost - failed on authenticationMarch 21

    I am trying to send mail from my java application simply connecting on localhost:25 with empty login and password (I have to state them due to API). Mail sending is failed then with 2010-03-21 12:20:01 login authenticator failed for localhost [127.0.

  • How Do I Configure Exim4 on Ubuntu to Send Mail Using Google Apps?May 19

    I have an Ubuntu VPS that is using exim4 as a satellite email server set up to send mail through Google Apps. Mail meant to go to an address hosted by Google gets delivered. This means that things like a "contact us" webform is working because i

  • CentOS send mail with external SMTP server and without local daemonsAugust 25

    I've got a little old server with CentOS 6.5 on it. The hardware is old and crappy, but enough for what it has to do. Which consists of SSH (+SFTP), Apache, PHP and MySQL. Still, I'm trying to cut away all that I can. One thing that it does not need

  • impossible send mail to serverJune 28

    Hi ALL, I can't send mail to my server I CAN send mail from my server Code: This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error.

  • Best Practices? Send Mail from Web AppJanuary 7

    We have a web application that is sort of like a CRM app. People can log in and manage their business with other folks. As part of that management, our application may send emails to the people being managed. The wrinkle here is that our customers li

  • Can send mail from one app but not anotherNovember 9

    I'm having a weird and frustrating problem. With identical code, I can send mail from one of my apps but not another. Here's /var/log/mail.log for the e-mail that works: Nov 9 17:12:23 gob sm-mta[6693]: oA9MCN6H006693: from=<[email protected]

  • Can't send mail from server using sendmail/postfix; 'connecion timed out' March 23

    I can't send mail via my server. The mails get stuck in the mail qeueu. How can I fix this? mailq: 74226301703 850 Fri Mar 23 17:35:44 [email protected] (connect to alt4.gmail-smtp-in.l.google.com[173.194.77.26]:25: Connection timed out) ****

  • Can not send mails to server

    Can not send mails to serverAugust 1

    Hi, I'm still testing out my new server and now noticed, that I can not send mails to an emailadress configured with ISPConfig. I allways get the messages "User unknown in local recipient table". Does anybody have an idea how to solve or where t

  • How to disable sending mail from server

    How to disable sending mail from serverMarch 26

    Hi... Is it possible to disable sending mail from the server ? I have no use of it, and have problems with spam-relay. But i still need to be able to recive mail's to my users. But they use they ISP's SMTP to send mail. I have a SUSE 10 perfect setup

  • Can't send mail to server or SMTP thru firewallJune 26

    When I SMTP from outside the firewall I get this: This is the Postfix program at host webhost.rootcon.com. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance

  • Problem sending mails to server from extern server

    Problem sending mails to server from extern serverJanuary 22

    I have a problem with my domain, when I try to send mails to my account [email protected] dosen't it gonne be delivered if I send from an extern server, but If I send intern of my server, is it delivered. How do I gonna make it possiple to send from

  • Amazon SES not sending mail on serverDecember 3

    I have configured SES on my server. My product is running in Laravel Framework. MAIL_DRIVER=smtp MAIL_HOST=email-smtp.us-east-1.amazonaws.com MAIL_PORT=587 MAIL_USERNAME=A****************A MAIL_PASSWORD=A***********************************Q Earlier,

  • send mail SQL Server with Dynamic smtpFebruary 17

    That's basically it. i've configured the profile, mail, smtp server, username and password. I'm using sp_send_dbmail but occasionally I'm going to change the smtp, username, password and port, I have that in a table and I just need to the pass parame

  • Exim need to send mail off serverNovember 7

    Never needed to set up a mail server before. I've got exim up and running perfectly fine. When I send an email using command line to [email protected] it works wonderfully, arrives from [email protected] exactly as I'd expect it to. When I try to se

  • Mail domain hosted with someone else, can't send mail from server with www hosted domainAugust 27

    I have a site on one machine with the domain name www.example.com. The email domain is handled by someone else. When I try to send a mail from a php script on the website hosted by my machine to [email protected] the mail logs says there is relaylock.

  • Nagios send mail when server is downDecember 7

    I am using nagios 3.06 to monitor the servers. When a service is critical, it sends a mail, but when a server is down no mail is sent. Even if all the services go to critical state, no mail is sent. I have the following configuration: define command

  • unable to send mail from serverMay 27

    I am trying to write a script which sends an alert to a few email ids. The script will fetch its data from pmta log file. As my script is ready but it's not sending out the mail. The server on which this script will run is installed with PowerMTA to

  • Send mail with external app (windows live mail)

    Send mail with external app (windows live mail)May 28

    Hello, I have a problem (again) I do not manage to configure mail customer's software with my server for the sending of mail. Reception works perfectly but the sending it is in no way her(its) send a mail with squirrelmail work perfectly thank you --

  • Sending Mail from Web App to Google Apps won't work - internal routing? VPSApril 16

    I've got a web application, www.mysuperwebapp.com, which sends out emails for various reasons - the contact us page is a good example. I am using google apps on the domain and I've setup a google apps group, Support ([email protected]), which

  • Sending mail takes long time in localhostSeptember 28

    I am using Ubuntu.I installed sendmail in my local host using the following command sudo apt-get install sendmail Now I would like to check whether mail goes from my localhost using following php code. <?php $to = "[email protected]"; $subject =

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 1.148 s.