I've been looking for my problem in Vesta Forum. I found some information, but still sending mail doesn't work.
My IP isn't on any black list
I turned Off ipv6, spamassasin and clamd in exim configuration like this:
SPAMASSASSIN = no
SPAM_SCORE = 50
CLAMD = no
disable_ipv6=true
Mail are not sending from:
PHP mail() and Wordpress
Roundcube
In Roundcube I got following error, while sending to gmail:
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
***#gmail.com
host alt2.gmail-smtp-in.l.google.com [108.177.14.26]
SMTP error from remote mail server after pipelined end of data:
550-5.7.1 [52.210.16.21 7] Our system has detected that this message is
550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail,
550-5.7.1 this message has been blocked. Please visit
550-5.7.1 https://support.google.com/mail/?p=UnsolicitedMessageError
550 5.7.1 for more information. b10si20481ljd.189 - gsmtp
Reporting-MTA: dns; bobcars.pl
Action: failed
Final-Recipient: rfc822;***#gmail.com
Status: 5.0.0
Remote-MTA: dns; alt2.gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 [52.210.16.21 7] Our system has detected that this message is
550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail,
550-5.7.1 this message has been blocked. Please visit
550-5.7.1 https://support.google.com/mail/?p=UnsolicitedMessageError
550 5.7.1 for more information. b10si20481ljd.189 - gsmtp
While I'm sending to another (polish o2.pl)
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. The following address(es) failed:
pzatorski#o2.pl
all hosts for 'o2.pl' have been failing for a long time (and retry time not reached)
Reporting-MTA: dns; bobcars.pl
Action: failed
Final-Recipient: rfc822;pzatorski#o2.pl
Status: 5.0.0
Can anyone help me please?
Thanks to offical VestaCP forum i've noticed that you need to contact AWS to reduce your sending email limits.
Related
I am trying to setup a email server on Google clou for which I have used iRedMail. I have followed this link to setup. There was no error in logs while sending email to this email server but when I try to send from the UI to my email ID it is giving me following error in logs. ( /var/log/mail.log ).
Dec 8 10:19:36 comm postfix/smtp[4142]: connect to mail.tinydef.com[157.230.67.25]:25: Connection timed out
Dec 8 10:19:36 comm postfix/smtp[4142]: 4J8CnP4ND5z3ygl: to=<jamir46881#tinydef.com>, relay=none, delay=31, delays=0.02/0.03/31/0, dsn=4.4.1, status=deferred (connect to mail.tinydef.com[157.230.67.25]:25: Connection timed out)
I am aware that port 25 is blocked on GCP. Just trying to figure a way out from this situation. Is there any configuration that can be tweaked to change port 25 to some other port ?
You cannot send mail to external IP addresses on port 25 from instances in Google Cloud. There is no appeal process to change this policy.
Sending email from an instance
To function as a mail server requires communication between servers on port 25. Mail relays can use any port the mail server supports except for port 25.
iRedMail can function as a traditional mail server, which requires port 25, and as a mail relay to forward mail to a mail server.
Setup relayhost
Your solution is to configure iRedMail as a relay host forwarding mail on port 465 or 587 to a mail service such as Gmail, Office 365, SendGrid, etc. The email service will deliver your email.
I use SES for sending emails to users. Sometimes users reported to me that they did not receive any emails from me. I started to collect bounced emails via sns topic and found a lot of errors with status = 5.5.1 and
diagnosticCode
"smtp; 550 5.1.1 Remote MTA does not support STARTTLS. Message can be delivered only over a TLS connection."
I use the aws-sdk and my code which sends emais:
let params = {
Destination: {
ToAddresses: [emailDestination]
},
Message: {
Body: {
Html: {
Charset: "UTF-8",
Data: template({
...templateData
})
},
},
Subject: {
Charset: 'UTF-8',
Data: templateData.subject
}
},
Source: SOURCE_EMAIL,
ConfigurationSetName: CONFIGURATION_SET_NAME
};
await ses.sendEmail(params).promise()
My ConfigurationSet has TLS Required
What did I do wrong and could it be a remote configuration issue of the user?
I think you are on the right track of it being a remote issue. From the sound of the error, Amazon SES is trying to connect to a remote mail relay but failing to create a TLS connection and canceling instead.
Your configuration set is enforcing a policy of sending only when a TLS connection can be established to receiving server (and message is encrypted) all the way to the end-user. Depending on how sensitive your emails are, this may be the desired behavior.
However, if you want to continue to send the mail, even when unencrypted, you can disable the require TLS setting. Amazon will still use TLS when possible, according to their documentation -
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/security.html
By default, Amazon SES uses opportunistic TLS. This means that Amazon SES always attempts to make a secure connection to the receiving mail server. If Amazon SES can't establish a secure connection, it sends the message unencrypted.
I am trying to connect to Gmail through CFIMAP and I am getting a connection timed out error. This code works on my dev environment but not on production. I have also opened a ticket with my ISP just in case.
This is the error
An exception occurred when setting up mail server parameters.
This exception was caused by: javax.mail.MessagingException: Connection timed out: connect; nested exception is: java.net.ConnectException: Connection timed out: connect.
And this is my code:
<cfimap
server = "imap.gmail.com"
username = "surveysemail#signatureforum.com"
action="open"
password = "test"
connection = "mail.test.com"
timeout = 120>
I had the secure parameter in before and also the port but I removed them while testing different options. Also, I just added the timeout parameter but did not work either.
GMail is particular as to the types of connection it receives. Generally this chalks up to a security issue because the server you're trying to log into Gmail from (at your ISP) is in a different location and has never logged in from the browser on that machine.
There's a couple of things you can do here:
First, If you have RDP access to the server at your ISP, you can log in to Gmail from the server, then try again.
If that doesn't work, review the "Device activity and notifications" page on the Gmail account to see if Google is blocking access from the server. (https://myaccount.google.com/security?hl=en&pli=1#activity)
Give that a shot... most likely Gmail is seeing the activity coming from your server as erroneous and is blocking it from that front.
I'm trying to write a simple receiving mail server (MTA) in C++ on Linux, I've gotten as far as when I try to send mail to it from my Gmail account, a Google server connects, but then quits right after. I have no idea what I'm missing. The current communication looks like:
S: 220 mx.domain.com ESMTP<CR><LF>
C: EHLO mail.google.com<CR><LF>QUIT<CR><LF>
S: 250 mx.domain.com at your service<CR><LF>221 Bye<CR><LF>
I'm very confused by the fact the Google mail server is sending both EHLO and QUIT in the same request. And of course it never sends the actual mail. Any ideas as to why it quits?
In my case it was because the server sent the response to the client padded with '\0' after capping to the correct response length everything works as intended.
I am trying to connect to an amazon server for sending emails by editing by web.config
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network enableSsl="true" port="587" host="email-smtp.us-east-1.amazonaws.com" password="actual password" userName="actual username"/>
</smtp>
</mailSettings>
</system.net>
These settings are being set as evidenced below:
All I am doing in code is
SmtpClient client = new SmtpClient();
client.SendCompleted += SendCompletedCallback;
string userState = _id.ToString();
client.SendAsync(msg, userState);
but the error I get back is always
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 184.73.222.29:587
Before I was using an internal mail server, but since this will be getting pushed to the amazon cloud, I will not have access to the local server. In the case of the local server, all i had to do was specify the ip address for host and it ran just fine.
There were three issues at hand:
1: The email address it was being sent from was not verified with Amazon, and neither was the recipient (verification of recipient only needed in sandbox mode)
2: The out port I was using, 587, is blocked by my company, which seems to be common practice
3: Using async can only be done when you specify the page uses async in the aspx "header"