sendmail is unable to get access to the outside world? unable to send email?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As you have amended and rebuilt the sendmail.mc to include the change of outbound smtp port from to 465, I recommend that you restart the sendmail service to reflect the change if you haven't already done so - otherwise the 2 may conflict.
systemctl restart sendmail.service
Rawcous!
yes, I have rebuilt the sendmail.mc file. I have restarted sendmail service. For some reason, it does not want to cooperate with me. It does not send email out to Yahoo or GMAIL inbox.
I am so frustrated. Do I need to make changes in the IPTABLES?
A lot of ISPs block outgoing email from consumer accounts, most times by blocking the ports which are used for email. But you probably know that. As in port 25 will not work. Hosting companies tend to offer multiple port options like port 26 to let you play with your hosting subscription from a domestic ISP connection. But sometimes ISPs block those too.
Doing a search via Google (https://www.google.co.uk/#q=sendmail...n.net&start=20) it would seem that you are amongst hundreds if Verizon customers who are experiencing this issue. See the following for possible solutions. Unfortunately I cannot assist with this as I do not use Verizon / have this issue with relaying mail via my ISP - I will still help if I can... It also appears that Verizon may be using SSL after all...
A lot of ISPs block outgoing email from consumer accounts, most times by blocking the ports which are used for email. But you probably know that. As in port 25 will not work. Hosting companies tend to offer multiple port options like port 26 to let you play with your hosting subscription from a domestic ISP connection. But sometimes ISPs block those too.
I freaking knew it. Darn ISP's. I think you are correct. My Verizon FIOS is blocking those email ports. I have forwarded ports on my ROUTER and on my LINUX FODORA machine in the IPTABLES. When I run the port scanner. It says CLOSED for SMTP ports.
Doing a search via Google (https://www.google.co.uk/#q=sendmail...n.net&start=20) it would seem that you are amongst hundreds if Verizon customers who are experiencing this issue. See the following for possible solutions. Unfortunately I cannot assist with this as I do not use Verizon / have this issue with relaying mail via my ISP - I will still help if I can... It also appears that Verizon may be using SSL after all...
I have working on this for 2 freaking weeks. I am getting the same error as it says in those forums.
{edited for privacy}@verizon.net... Connecting to smtp.verizon.net.
{edited for privacy}@verizon.net... Deferred: Connection reset by smtp.verizon.net.
Doing a search via Google (https://www.google.co.uk/#q=sendmail...n.net&start=20) it would seem that you are amongst hundreds if Verizon customers who are experiencing this issue. See the following for possible solutions. Unfortunately I cannot assist with this as I do not use Verizon / have this issue with relaying mail via my ISP - I will still help if I can... It also appears that Verizon may be using SSL after all...
.
The pointer is at http://www.dawoodfall.net/index.php/relaying-sendmail-a-ssl which shows where Virgin Media in the UK pulled the same stunt as Verizon. It doesn't quite work as mentioned, you need to put the relay domain in square brackets to avoid MX resolution, however apart from that it's sweet. I didn't set up relay-domain as mentioned.
Briefly, to enable using sendmail to deliver mail on FIOS:
1) install stunnel
2) Create /etc/stunnel/smtp.verizon.net.conf with:
sslVersion = SSLv3
[ req ]
client = yes
accept = 2525
connect = smtp.verizon.net:465
3) /etc/init.d/stunnel restart
4) Add sendmail.mc:
define(`SMART_HOST', `[localhost]')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 2525')dnl
define(`ESMTP_MAILER_ARGS', `TCP $h 2525')dnl
5) Add to authinfo:
AuthInfo:fqdn.of.your.localhost "U:name" "P:smileytongue:assword" "M:smileytongue:LAIN"
AuthInfo:fqdn.of.your.localhost:2525 "U:name" "P:smileytongue:assword" "M:smileytongue:LAIN"
6) cd /etc/mail && make && /etc/init.d/sendmail reload
Doing a search via Google (https://www.google.co.uk/#q=sendmail...n.net&start=20) it would seem that you are amongst hundreds if Verizon customers who are experiencing this issue. See the following for possible solutions. Unfortunately I cannot assist with this as I do not use Verizon / have this issue with relaying mail via my ISP - I will still help if I can... It also appears that Verizon may be using SSL after all...
As it turns out, Verizon FIOS is blocking all OUTGOING email ports, Verizon is not allowing relaying at all. I was able to use GMAIL SMTP port 587server. I configured POSTFIX to use GMAIL as relay.
As it turns out, Verizon FIOS is blocking all OUTGOING email ports, Verizon is not allowing relaying at all.
Are you sure... if this is the case then does it mean that you can't send mail from your pc using a mail client such as Outlook, Live Mail, Thunderbird etc - therefore meaning emails can only be accessed by logging in via a web link...?
Anyway, if relaying mail through gmail servers works then fair enough and well done for figuring this one out - "There's always a way" (as my boss says...)
Are you sure... if this is the case then does it mean that you can't send mail from your pc using a mail client such as Outlook, Live Mail, Thunderbird etc - therefore meaning emails can only be accessed by logging in via a web link...?
Anyway, if relaying mail through gmail servers works then fair enough and well done for figuring this one out - "There's always a way" (as my boss says...)
Rawcous!
Quote:
if this is the case then does it mean that you can't send mail from your pc using a mail client such as Outlook, Live Mail, Thunderbird etc
Yes, I tested this theory, I have outlook on my WINDOWS machine. and I am able to send out emails to Yahoo inbox or Gmail inbox.
My statement about blocking all my outgoing ports is a opinion, assumption. I am not 100% sure. So, I could be wrong. But GMAIL works for me. that is all I needed at this point. I will figure out the FIOS issue later on.
Recently, on VERIZON FIOS, 30,000 emails were compromised and sending out SPAM.
possibly, FIOS just blocked all outgoing for residential customers.
From the "gumph" I came across, yes it does appear this is the case with Verizon residential customers. Legit businesses having statitc IP's and perhaps less likely to intentionally deploy spam.
The only strange ocurence that I have experienced was if I used my ISP's default DNS entries (primary and secondary) via my router I had trouble sending out mail even though I specified my ISP's SMTP server via sendmail. However, if I used OPENDNS' DNS entries (primary and secondary)via my router and specified my ISP's SMTP server via sendmail it would work... So basically all I was changing was my router DNS not my mailserver SMTP...
Many ISP provided DNS servers suck. Or at best are unreliable and incomplete. Things like dns_masq can help smooth over the experience, but using googles 8.8.8.8 and other options seems the better route. Sometimes I have to use sites like network-tools.com and add a DNS like entry in my /etc/hosts file to keep things working smoothly. I often equate american ISPs as 3rd world telecoms. Baring a few places with fiber, most of america falls short in bandwidth availability relative to the rest of the civilized world.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.