Jenkins throws "Client does not have permissions to send as this sender" - email

There is lots of posts with users having same error, but none of them works for me...
I am trying to send email reports in Hudson/Jenkins...
Our mail server uses SSL/TLS, I configured Jenkins for TLS, then I am getting this error:
Client does not have permissions to send as this sender
When I try javamail using code, it sends the email properly. Also, Thunderbird works fine.
Any ideas? Do I need to contact mail server administrators?

Finally got it, thanks to Friso
Had to set my email address in System Admin e-mail address under Jenkins Location.

The email should be changed in three places as below as per version 2.19.4:
Extended E-mail Notification - If using SMTP plugin
Email Notification - SMTP Authentication
Jenkins location - System Admin e-mail address

I had the same issue, and I discovered that credentials were no more valid, so I asked to the IT department who told me that credentials were no more need on LAN.
Now it works!

Related

Gmail SMTP Authentication Error when using App password with workspace domain alias

I want to be able to use my Google Workspace email alias when automating email sending using yagmail and gmail's SMTP server.
I have set the default "Send Email As" address from the main email (#gmail.com) to the alias email (#domain.com), which is fine when sending manually. I currently have 2SV enabled with my main email & app password sending emails properly through yagmail, but it still shows the sending address as the main email. I tried authenticating with the email alias and a new app password, but I am receiving the following error:
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted).
I tried a few solutions found online, such as this one (https://support.google.com/mail/thread/127655543/gmail-alias-not-working-it-says-the-password-i-am-entering-for-the-alias-is-wrong-but-it-s-correct?hl=en), to no avail.
Why is using App password fine for my main email but not my domain alias? How can I automate sending emails using domain alias? Any help on this would be greatly appreciated!

Emails not received in Opencart-3 from the same adress (from admin to admin email)

Please Help ...
I debug it and everything looks fine, I configured the SMTP in admin successfully and emails working fine but in case, If we add the same Hosting Domain name, while sending email then It's not working ???
Example: Forgot password not working because URL there but In admin "Marketing => Mail" working, If I do not add domain name. (NOTE: Other domain name working, If I add only opencart3 hosted domain name not working in email)
It looks like not an OpenCart issue, but a hosting configuration. As you said, when you are using same domain name in email, as a site domain - sometimes it's a routing incorrect.
Check an email configuration on your server. When you trying to sent an email to same-domain address - it could be routed as an inner massage. For example, in cPanel hosting settings you should inspect "Mail forwarding" and can check the status of messages in "Track delivery".
If you are using cPanel - go to Mail forwarding, find you domain, and change settins:
Automatically Detect Configuration. - will be set by default.
Local Mail Exchanger. - try this.
Backup Mail Exchanger.
Remote Mail Exchanger. - or this.
Or you can ask you hosting support. Your question will be "I'm trying to use an email address mayaddress#mydomain.com via SMTP on my mydomain.com, but when i try to sent an email to the same address - the message is missing. Can you check email routing settings?"

moodle email configuration error

I have been trying to configure SMTP in order to send an confirmation email to email based self-registration users but each time an error message appear saying that
Tried to send you an email but failed!
this is my moodle email configurations
this is the error message I get when I run a test email
when searched the error I found that Moodle does not connect to email server.
is there any other configurations that I should check?
since this did not work I tried to connect through outlook.
I tried to configure outlook but it also failed.
this is the configuration for outlook
this is the error I get
please help..!!!
I'm not entirely sure what the problem is, we are using our own mailserver..
However, there are some restrictions to Gmail usage, which can require you to make some changes on your Gmail account.
Have a look at this to allow a new service access to your Gmail account:
https://www.lifewire.com/unlock-gmail-for-a-new-email-program-or-service-1171974
And here to allow your Gmail access to less secure services and programs:
https://myaccount.google.com/lesssecureapps?pli=1

Sender dependent relaying on Zimbra 8.7? Can it be done?

I had a server running Zimbra 8.6 and it was configured to send via any one of five external relays based upon which one of my external accounts I was sending from. This worked great until I had a server crash and rebuilt this one using the latest Zimbra 8.7.
I have read and researched and tried everything I had done for my old 8.6 system and I simply cannot get this to work! When I try to send an email from the web client to gmail I get a warning from gmail that my server's IP address and domain are not allowed to relay since they are unauthenticated. According to my postfix configuration I should be authenticating using my own gmail credentials. But, the web client seems to ignore this.
When I try logging in directly on the Zimbra box I can use sendmail with the -tf parameters to mock up an email from one of my addresses to gmail and it works just fine. It is sent and looks like it came from the proper relay domain.
Is sender dependent relaying broken on 8.7? Does it work for anyone?
Welp, I gave up and set my server up to use gmail as the external relay for all accounts, and in my admin console I set my user account to be able to send from all of my external email addresses (specifying each of them there).
Now it properly relays through gmail and still shows each message as coming 'from' the external account I select in the new message window.
Maybe this will help someone with a similar issue.

cPanel 'No such user here'. Local account issue?

I have a website hosted outside the organization. The mail server to recieve the message is inside the organization. The website submits a simple form to email using PHP mail function. Works on every domain tested for the recipient except for ones internal to the domain.
So website is www.domain.com. Mail server is mail.domain.com. Hosted at separate sites. When www.domain.com wants to send a message to user#domain.com it should lookup the mx record and notice that mail.domain.com is at another location and forward the message.
If I configure it to send to user#otherdomain.com, the message is successfully sent and received. But sending to the same domain responds with 550 error 'No such user here'. So I'm wondering if the webserver thinks it is supposed to be the recipient of the mail, and thus responds with 'No user here' because, frankly there is no user configured there.
So does anyone know what cpanel/whm settings need to be added/adjusted to allow this server to know that it is not responsible for mail exchanging for this domain. I do have the mx record setup properly, but don't know if it also requires an A record for the address. Any help much appreciated.
I did notice others having the same issues, but no solutions were actually proposed, so I figured I would make my own question, and see if it get's a good answer for others too that may experience the same issue.
It looks like your routing settings are incorrect. Navigate to cPanel >> MX Entry and verify that the routing setting is Remote Mail Exchanger
As the mails are to be delivered externally, setting this as Local Mail Exchanger will make cPanel think the mails are setup locally and cPanel will try to deliver mails locally. As there are no local mail accounts configured with that name, it bounces with the mentioned error.
I would suggest avoiding sending directly to the MX. Submit your message to a local mail server and let it relay to the MX for you. If you send using PHPMailer with SMTP you will get much better feedback on deliveries. As for what cPanel is doing, check the local mail server log, usually in /var/log/mail.log.
You have to change the setting from local to "Remote Mail Exchanger" in dns zone file. and also create mail account at remote location site.