my smtp settings are not working on interspire email marketer - interspire-shopping-cart

I have setup IEM on justhost. It installed fine. Now when I'm sending emails, it says: cannot connect to server error 110
Also I have my doming using google apps emailing server. Have configured it on just host using there google apps wizards.
The settings for IEM are bellow:
smtp host: ssl://smtp.gmail.com
smtp user: my email id
smtp pass: my pass
port : 465
But it gives the error:
A test email has not been successfully sent to the email address rohan#skylite.com: Unable to connect to mail server: Connection timed out(110)
The cname that it changed is:
HostRecord Points to TTL
mail ghs.google.com 14400
www mydomain.com 14400
MX rec are
the TTL is 14400 and ya just host dosnt make it less
1 # aspmx.l.google.com 14400
5 # alt1.aspmx.l.google.com 14400
5 # alt2.aspmx.l.google.com 14400
10 # aspmx2.googlemail.com 14400
10 # aspmx3.googlemail.com 14400
So guys, what's the problem?

Your server's outbound port 465 may be closed, causing the error. You should use the portcheck.php script to test your ports. Refer to the interspire documentation:
https://www.interspire.com/support/kb/questions/1208/How+do+I+use+Amazon+SES+with+Interspire+Email+Marketer%3F

Forget using Gmail with Justhost.com they block 465 587 SMTP ports. It is really really really annoying. You have to send emails using PHP sendmail which end up 60% of the time getting treated as spam!

Related

Issue while trying to configure outgoing mail server

I tried setting up the outgoing server with the following credentials:
SMTP Server : smtp.office365.com, SMTP Port : 25, Connection Security :TLS (STARTTLS), Username : ***, Password : ***
The Test connection is successful, but my outgoing mail is failed with the following message:
Mail delivery failed via SMTP server 'smtp.office365.com'.
SMTPDataError: 554
5.2.252 SendAsDenied
Any clue will be helpful..
Try to set right configurations for outgoing SMTP server based on Google guides.
The outgoing SMTP server, smtp.gmail.com, supports TLS. If your client
begins with plain text, before issuing the STARTTLS command, use port
465 (for SSL), or port 587 (for TLS).

Setting Outgoing Emails Servers in Odoo

I'm trying to set-up outgoing email server in Odoo for my Organization.
For doing so the system request for username and password along with server details,
Now we have around 15 users in Odoo.
Do we need to enter all usernames individually?
Odoo is not a mail server.
You have to configure with your any of your official mail accounts (gmail/outlook/any other official mail service you have for your office). odoo will use those to send mail.
Description: A description for the outgoing mail server.
SMTP server: The pointer to the SMTP of your server, ex. smtp.gmail.com .
SMTP port: The port of your SMTP server, ex. 465 for Gmail.
Connection security: You should choose SSL/TLS for Gmail.
Username: Your e-mail account, like: youremail#gmail.com
Password: Password of your e-mail account.
SMTP Server :- smtp.gmail.com
SMTP Port :- 465
Connection Security :- SSL/TLS
Username :- Your mail account
Password:- Password of your email account
The following fields are needed to configure the mail server.
Description :-> A description of the Outgoing mail server
Priority :-> Priority of your outgoing mail server. Low priority mail servers are used first and mostly.
SMTP Server :-> The server SMTP e.g, zsmtp.hybridzimbra.com(for Thunderbird)
SMTP Port :-> The SMTP port of your server e.g, 465 (for Thunderbird)
Connection Security :-> Security to be used like TLS(STARTTLS) or SSL/TLS. Use SSL/TLS for Thunderbird
Username :-> Your e-mail account.
Password:-> The password of your e-mail account.
I think the following document should help you out.
https://www.odoo.com/documentation/15.0/applications/general/email_communication/email_servers.html

Sendmail does not send emails from GCE VM instance

I have installed a WordPress website on my Google Cloud Compute Engine, but I am not able to send mail. So after searching the internet discovered Sendmail.
Installed and configured the latest version by:
$ sudo apt-get update
$ sudo apt-get install sendmail
Ran the sendemail config, answered "yes" to everything:
$ sudo sendmailconfig
Edited the 127.0.0.1 localhost instance-1 line (instance-1 is my Google cloud instance):
$ sudo vim /etc/hosts # changed
Restart Apache:
sudo service apache2 restart
When I run the command below in my terminal, nothing happens, and I am not be able to run commands anymore. So it looks like the process is not ending.
$ sendmail example#email.com
The output of $ date | sendmail -v example#email.com returns:
example#email.com... Connecting to [127.0.0.1] via relay...
220 instance-1.c.myproject.internal ESMTP Sendmail 8.14.4/8.14.4/Debian-8; Wed, 24 Aug 2016 09:42:18 GMT; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]
>>> EHLO instance-1.c.myproject.internal
250-instance-1.c.myproject.internal Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<info#instance-1.c.myproject.internal> SIZE=29
250 2.1.0 <info#instance-1.c.myproject.internal>... Sender ok
>>> RCPT To:<example#email.com>
>>> DATA
250 2.1.5 <example#email.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
My log file /var/log/mail.log show al lot of these kind of lines:
Aug 25 07:56:02 instance-1 sm-mta[19958]: u7OCN1Wu013988: to=<example#email.com>, delay=19:33:01, xdelay=00:10:36, mailer=esmtp, pri=5340422, relay=alt4.gmail-smtp-in.l.google.com. [173.194.72.27], dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Aug 25 07:56:02 instance-1 sm-mta[19958]: u7OC9iDu013870: to=<example#email.com>, delay=19:46:18, xdelay=00:00:00, mailer=esmtp, pri=10560423, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Aug 25 07:56:02 instance-1 sm-mta[19958]: u7OBliSC013710: to=<example#email.com>, delay=20:08:18, xdelay=00:00:00, mailer=esmtp, pri=10740386, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Aug 25 07:56:02 instance-1 sm-mta[19958]: u7O94ubM013110: to=<example#email.com>, delay=22:51:06, xdelay=00:00:00, mailer=esmtp, pri=11460376, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
You cannot send mail from Google Compute Engine, Google blocks all outgoing traffic on 25.
You will have to use a third party like Sendgrid to send mail.
Yes, it could be possible to send email from the instance, everything is explained in this tutorial.
By default, Compute Engine allows outbound connections on all ports except port 25, which is blocked because of the risk of abuse. All other ports are open, including ports 587, and 465.
It's not possible to send email directly from your GCE VM.
Please have a look at the documentation Always blocked traffic:
Egress traffic to TCP destination port 25 (SMTP)
also at the Using standard email ports:
Due to the risk of abuse, connections to destination TCP Port 25 are always blocked when the destination is external to your VPC network. This includes using SMTP relay with Google Workspace.
Accordingly to the Wikipedia article Simple Mail Transfer Protocol:
Since SMTP's introduction in 1981, it was updated, modified and
extended multiple times. The protocol version in common use today has
extensible structure with various extensions for authentication,
encryption, binary data transfer, internationalized email addresses.
SMTP servers commonly use the Transmission Control Protocol on port
number 25.
This was first decided back in 1982 with RFC 821, Appendix A and has been this way ever since. At the RFC5321 you can see:
4.5.4.2. Receiving Strategy
The SMTP server SHOULD attempt to keep a pending listen on the SMTP
port (specified by IANA as port 25) at all times.
What does that mean? You cannot simply change the port, because there is no mechanism for other SMTP servers to know you are using a non-standard port, and you cannot either send to other servers using any other port.
Is there a way to send emails from the GCE VM?
Yes, let's get back to the documentation Using standard email ports:
Google Cloud does not place any restrictions on traffic sent to external destination IP addresses using destination TCP ports 587 or 465.
The ports 587 and 465 are available for SMTP Message Submission (RFC6409). This means you can use an external mail relay (your own or 3rd party) for authenticated SMTP, and this server handles delivery to other mail systems on port 25. For example, you can use these 3rd party services: SendGrid, Mailgun, or Mailjet. Also, you can relay your mails via Google Workspace or just use Google Workspace.

Elmah is sending multiple emails per error. Only remote port is different

I have a ASP.NET MVC 4 app and I am using ELMAH to only send emails. It is sending me 2 emails per error, and the REMOTE PORT is different, but nothing else. And, that PORT # is not the port my app is accessing.
For instance, I am using localhost port 55116
Error 1 port: 51467
Error 2 port: 51469
Why am I getting two emails, and how can I reduce it to one?

Successfully mailing joomla contact form stopped mailing, now giving SMTP error

using joomla 1.7.2 & google app mailing which is working fine in the web client.
the contact form was sending mails successfully until 23 july, now it stopped mailng & giving the error
"SMTP Error! Could not authenticate".
when using TLS its gives error:
"SMTP Error! Could not authenticate.
Language string failed to load:
tls Language string failed to load: smtp_errorSTARTTLS command used
when not advertised"
Here is the joomla Mail Setting in the global configuration that was working earlier:
Mailer SMTP
From email email#mydomain.com
From Name email#mydomain.com
Sendmail Path /usr/sbin/sendmail
SMTP Authentication Yes
SMTP Security TLS
SMTP Port 587
SMTP Username email#mydomain.com
SMTP Password ******
SMTP Host smtp.gmail.com
everything is same as it was when the mailing was working.
Now tried changing
smtp ports to: 465 & 587, with both SSL & TLS;
smtp host to: ssl://smtp.gmail.com:465, SMTP Security: None, SMTP Port: 25
Same mailing problem occurred few months back also but then just by using SMTP TLS/587 & full email id in the 'From Name' started the mailing.
BUT NOW NO SETTING SEEMS TO BE WORKING.
i also checked this post
How to configure Joomla 1.7 SMTP email with a google apps email address
and found openssl is enabled in my php_info.
Did google changed anything or my hosting server? What should i look for if my hosing server changed anything?
i could not find any other setting to try!
Anyone plz provide some clue!
i got the solution to the issue & mailing started again.
What's needed is to update the TXT DNS record to include the SPF entry for Google Mail.
so i updated my TXT DNS record to:
"v=spf1 +a +mx +ip4:<my_domain_ip> +include:_spf.google.com ?all"
So to be able to send emails using Google App Mailing from our domain we must have a TXT DNS record with atleast
"v=spf1 +include:_spf.google.com ~all"`