Score:0

Send email via exim4 using port 587

cn flag

0

I have configured exim4 and am trying to send out emails using port 587 and the email is being sent but on the mail server it show connecting at port 25. I am using:

echo "Subject:Hello All" | sendmail -v -port 587 [email protected]

T: remote_smtp for [email protected] Connecting to gmail-smtp-in.l.google.com [2607:f8b0:4004:c08::1a]:25 ... LOG: MAIN (Not pasting the entire output of the log here)

+++++++++++++++++++++ I wanted to check why the connection goes to port 25 as shown below---- """Connecting to gmail-smtp-in.l.google.com [2607:f8b0:4004:c08::1a]:25 ... LOG: MAIN""""

I want all my email to connect on port 587 as I have requested for port 587. I have tried most of the settings shown online in the exim4 config file. But still it connects on 25. Links that I followed but no luck : https://www.fyzix.net/index.php?title=Installing_and_Configuring_Exim4_for_Gmail_SMTP_Relay and https://logs.paulooi.com/enable-smtp-port-587-on-exim.php

Also, any mail server I use... it connects to port 25..

Could anyone help me here ?

Orphans avatar
cn flag
https://www.warpconduit.net/2016/05/14/configuring-exim-authenticated-smtp-relay-gmail-centos/
Orphans avatar
cn flag
What you are looking for is "relay email via gmail with exim4". The link above should guide you throu it.
Orphans avatar
cn flag
Or if you decide to use postfix, which is much easier (in my opinion) to use: https://blogs.linux.pizza/postfix-relay-emails-via-a-another-mailserver-with-authentication-and
Score:1
us flag

Port 587,This is the default mail submission port, so it should only be used for submissions (i.e., mail client to mail server)

while SMTP (Port 25) is the protocol, or set of rules for formatting data, that helps emails travel across the Internet. It transfers emails from mail server to mail server until they reach their final destination.

Score:1
us flag

This is simply not possible.

Mail servers talk to each other on port 25. You cannot change this.

You have to use port 25 if you want other servers to be able to talk to it.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.