Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Usage: fortune -P [-f] -a [xsz] Q: file [rKe9] -v6[+] file1 ...


computers / comp.mail.sendmail / Re: Sendmail error (Connection refused by [127.0.0.1])

SubjectAuthor
* Sendmail error (Connection refused by [127.0.0.1])Ali Khoshbin
+- Re: sendmail error (Connection refused by [127.0.0.1])Claus Aßmann
+* Re: Sendmail error (Connection refused by [127.0.0.1])zeneca
|`- Re: Sendmail error (Connection refused by [127.0.0.1])J.O. Aho
`* Re: Sendmail error (Connection refused by [127.0.0.1])zeneca
 `* Re: Sendmail error (Connection refused by [127.0.0.1])company 99001
  +* Re: Sendmail error (Connection refused by [127.0.0.1])Marco Moock
  |`* Re: Sendmail error (Connection refused by [127.0.0.1])company 99001
  | +* Re: Sendmail error (Connection refused by [127.0.0.1])Marco Moock
  | |`* Re: Sendmail error (Connection refused by [127.0.0.1])company 99001
  | | `* Re: Sendmail error (Connection refused by [127.0.0.1])Marco Moock
  | |  `* Re: Sendmail error (Connection refused by [127.0.0.1])company 99001
  | |   `* Re: Sendmail error (Connection refused by [127.0.0.1])Claus Aßmann
  | |    `* Re: Sendmail error (Connection refused by [127.0.0.1])company 99001
  | |     `* Re: Sendmail error (Connection refused by [127.0.0.1])Claus Aßmann
  | |      `* Re: Sendmail error (Connection refused by [127.0.0.1])company 99001
  | |       +- Re: Sendmail error (Connection refused by [127.0.0.1])Claus Aßmann
  | |       `- Re: Sendmail error (Connection refused by [127.0.0.1])Marco Moock
  | `* Re: Sendmail error (Connection refused by [127.0.0.1])Claus Aßmann
  |  `* Re: Sendmail error (Connection refused by [127.0.0.1])Ali Khoshbin
  |   `* Re: Sendmail error (Connection refused by [127.0.0.1])Tom Furie
  |    `* Re: Sendmail error (Connection refused by [127.0.0.1])company 99001
  |     `* Re: Sendmail error (Connection refused by [127.0.0.1])Marco Moock
  |      `* Re: Sendmail error (Connection refused by [127.0.0.1])Ali Khoshbin
  |       `* Re: Sendmail error (Connection refused by [127.0.0.1])Marco Moock
  |        `- Re: Sendmail error (Connection refused by [127.0.0.1])Ali Khoshbin
  `* Re: Sendmail error (Connection refused by [127.0.0.1])Claus Aßmann
   `* Re: Sendmail error (Connection refused by [127.0.0.1])Ali Khoshbin
    `- Re: Sendmail error (Connection refused by [127.0.0.1])Claus Aßmann

Pages:12
Sendmail error (Connection refused by [127.0.0.1])

<938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=363&group=comp.mail.sendmail#363

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a37:9f52:: with SMTP id i79mr4133851qke.717.1641976863524;
Wed, 12 Jan 2022 00:41:03 -0800 (PST)
X-Received: by 2002:a25:ad08:: with SMTP id y8mr5689833ybi.738.1641976863111;
Wed, 12 Jan 2022 00:41:03 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Wed, 12 Jan 2022 00:41:02 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=87.107.116.99; posting-account=qbHGgQoAAACro2eBoQs8vQxH2yhBGGeF
NNTP-Posting-Host: 87.107.116.99
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
Subject: Sendmail error (Connection refused by [127.0.0.1])
From: akhosh...@gmail.com (Ali Khoshbin)
Injection-Date: Wed, 12 Jan 2022 08:41:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 78
 by: Ali Khoshbin - Wed, 12 Jan 2022 08:41 UTC

Dear Colleagues,
I am a newbie in Linux Sendmail. I get the below error while trying to send an email via Sendmail by command:

sendmail user@domain.com < email.txt

sendmail log is as below:
Jan 12 09:37:54 mail3 sendmail[523382]: 20C67sIA523382: to=user@domain.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=sendmail user@domain.com < email.txtrelay, pri=30029, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

My configuration is as below:
CentOS Linux release 8.5.2111.
sendmail version as below:
sendmail.x86_64 8.15.2-34.el8 @appstream
sendmail-cf.noarch 8.15.2-34.el8 @appstream

Listening ports:
tcp 0 0 validIP:25 0.0.0.0:* LISTEN 113547/sendmail: ac
tcp 0 0 InvalidIP:25 0.0.0.0:* LISTEN 113547/sendmail: ac

service sendmail status:
Redirecting to /bin/systemctl status sendmail.service
● sendmail.service - Sendmail Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/sendmail.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2022-01-09 10:20:10 +0330; 3 days ago
Process: 113546 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG (code=exited, status=0/SUCCESS)
Process: 113541 ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS)
Process: 113539 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)
Main PID: 113547 (sendmail)
Tasks: 1 (limit: 48769)
Memory: 3.0M
CGroup: /system.slice/sendmail.service
└─113547 sendmail: accepting connections

Jan 09 10:20:10 mailX systemd[1]: Starting Sendmail Mail Transport Agent...
Jan 09 10:20:10 mailX sendmail[113547]: starting daemon (8.15.2): SMTP+queueing@01:00:00
Jan 09 10:20:10 mailX systemd[1]: sendmail.service: Can't open PID file /run/sendmail.pid (yet?) after start: No suc>
Jan 09 10:20:10 mailX systemd[1]: Started Sendmail Mail Transport Agent.

vim /etc/mail/local-host-names

below entry exists in above file
mailX.domain.com

altered sendmail.mc file

executed
sudo m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

with no problem.

What do you think that my issue may be that I cannot send email & receive this error as mentioned above in my maillog folder:

Jan 12 09:37:54 mail3 sendmail[523382]: 20C67sIA523382: to=user@domain.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=sendmail user@domain.com < email.txtrelay, pri=30029, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Thanks in advance for your comments
Ali

Re: sendmail error (Connection refused by [127.0.0.1])

<srmbpk$s9$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=364&group=comp.mail.sendmail#364

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.veps.esmtp.org!not-for-mail
From: INVALID_...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail error (Connection refused by [127.0.0.1])
Date: Wed, 12 Jan 2022 05:50:28 -0500 (EST)
Organization: MGT Consulting
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <srmbpk$s9$1@news.misty.com>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 12 Jan 2022 10:50:28 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="veps.esmtp.org:155.138.203.148";
logging-data="905"; mail-complaints-to="abuse@misty.com"
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Wed, 12 Jan 2022 10:50 UTC

Ali Khoshbin wrote:

> dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Does
telnet 127.0.0.1 25
work? (enter quit after getting the greeting)

Did someone (your OS distribution) change the default port for
mail submission?
Check /etc/mail/submit.cf: does it use 587 somewhere?
If so, either change it back or run sendmail also on that
port: see cf/README: do not use no_default_msa

PS: 8.15.2 is pretty old.

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

Re: Sendmail error (Connection refused by [127.0.0.1])

<srooq8$la8$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=365&group=comp.mail.sendmail#365

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!aioe.org!tgTnqjlB+mH8wb8tQyid8Q.user.46.165.242.75.POSTED!not-for-mail
From: pas...@ailleur.fr (zeneca)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
Date: Thu, 13 Jan 2022 09:44:56 +0100
Organization: Aioe.org NNTP Server
Message-ID: <srooq8$la8$1@gioia.aioe.org>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="21832"; posting-host="tgTnqjlB+mH8wb8tQyid8Q.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.4.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: zeneca - Thu, 13 Jan 2022 08:44 UTC

Le 12/01/22 à 09:41, Ali Khoshbin a écrit :
> Dear Colleagues,
> I am a newbie in Linux Sendmail. I get the below error while trying to send an email via Sendmail by command:
>
> sendmail user@domain.com < email.txt
>
> sendmail log is as below:
> Jan 12 09:37:54 mail3 sendmail[523382]: 20C67sIA523382: to=user@domain.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=sendmail user@domain.com < email.txtrelay, pri=30029, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
>
> My configuration is as below:
> CentOS Linux release 8.5.2111.
> sendmail version as below:
> sendmail.x86_64 8.15.2-34.el8 @appstream
> sendmail-cf.noarch 8.15.2-34.el8 @appstream
>
> Listening ports:
> tcp 0 0 validIP:25 0.0.0.0:* LISTEN 113547/sendmail: ac
> tcp 0 0 InvalidIP:25 0.0.0.0:* LISTEN 113547/sendmail: ac
>
>
> service sendmail status:
> Redirecting to /bin/systemctl status sendmail.service
> ● sendmail.service - Sendmail Mail Transport Agent
> Loaded: loaded (/usr/lib/systemd/system/sendmail.service; enabled; vendor preset: disabled)
> Active: active (running) since Sun 2022-01-09 10:20:10 +0330; 3 days ago
> Process: 113546 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG (code=exited, status=0/SUCCESS)
> Process: 113541 ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS)
> Process: 113539 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)
> Main PID: 113547 (sendmail)
> Tasks: 1 (limit: 48769)
> Memory: 3.0M
> CGroup: /system.slice/sendmail.service
> └─113547 sendmail: accepting connections
>
> Jan 09 10:20:10 mailX systemd[1]: Starting Sendmail Mail Transport Agent...
> Jan 09 10:20:10 mailX sendmail[113547]: starting daemon (8.15.2): SMTP+queueing@01:00:00
> Jan 09 10:20:10 mailX systemd[1]: sendmail.service: Can't open PID file /run/sendmail.pid (yet?) after start: No suc>
> Jan 09 10:20:10 mailX systemd[1]: Started Sendmail Mail Transport Agent.
>
>
> vim /etc/mail/local-host-names
>
> below entry exists in above file
> mailX.domain.com
>
> altered sendmail.mc file
>
>
> executed
> sudo m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
>
> with no problem.
>
> What do you think that my issue may be that I cannot send email & receive this error as mentioned above in my maillog folder:
>
> Jan 12 09:37:54 mail3 sendmail[523382]: 20C67sIA523382: to=user@domain.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=sendmail user@domain.com < email.txtrelay, pri=30029, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
>
> Thanks in advance for your commentstcp 0 0 localhost:smtp 0.0.0.0:* LISTEN
> Ali
>
>
>
I suppose Validip and invalidip are your ip adresses, but is at least on
listening on 127.0.0.1 ??. Doesn't seems so.
On my Centos 7.9 it loock

tcp 0 0 localhost:smtp 0.0.0.0:* LISTEN

Re: Sendmail error (Connection refused by [127.0.0.1])

<j4a964F9673U1@mid.individual.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=366&group=comp.mail.sendmail#366

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@example.net (J.O. Aho)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
Date: Thu, 13 Jan 2022 10:20:03 +0100
Lines: 31
Message-ID: <j4a964F9673U1@mid.individual.net>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
<srooq8$la8$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net kztD842qHXh58OFk2lCIKw6KjCNJvnbKSzcEjKjac/vkwt3FHh
Cancel-Lock: sha1:P7q5rdDnXIAephMll72c0Zlz9cU=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.4.1
Content-Language: en-US-large
In-Reply-To: <srooq8$la8$1@gioia.aioe.org>
 by: J.O. Aho - Thu, 13 Jan 2022 09:20 UTC

On 13/01/2022 09.44, zeneca wrote:
> Le 12/01/22 à 09:41, Ali Khoshbin a écrit :

> I suppose Validip and invalidip are your ip adresses, but is at least on
> listening on 127.0.0.1 ??. Doesn't seems so.
> On my Centos 7.9 it loock
>
> tcp        0      0 localhost:smtp          0.0.0.0:*          LISTEN

could it be that localhost = 127.0.0.1 ?

>> Jan 12 09:37:54 mail3 sendmail[523382]: 20C67sIA523382:
>> to=user@domain.com, ctladdr=root (0/0), delay=00:00:00,
>> xdelay=00:00:00, mailer=sendmail user@domain.com < email.txtrelay,
>> pri=30029, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred:
>> Connection refused by [127.0.0.1]

It seems like the OP did managed to connect to localhost (127.0.0.1),
compared to my log there is a big difference on the mailer, for me it's
relay.

It's more about his sendmail configuration and I think we need our best
mind-readers and scrying glasses to be able to figure out what is
wrongly configured. Maybe Ali could provide the sendmail.mc

--

//Aho

Re: Sendmail error (Connection refused by [127.0.0.1])

<srpgfk$f6e$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=367&group=comp.mail.sendmail#367

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!aioe.org!tgTnqjlB+mH8wb8tQyid8Q.user.46.165.242.75.POSTED!not-for-mail
From: pas...@ailleur.fr (zeneca)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
Date: Thu, 13 Jan 2022 16:28:51 +0100
Organization: Aioe.org NNTP Server
Message-ID: <srpgfk$f6e$1@gioia.aioe.org>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="15566"; posting-host="tgTnqjlB+mH8wb8tQyid8Q.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.4.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: fr
 by: zeneca - Thu, 13 Jan 2022 15:28 UTC

Le 12/01/22 à 09:41, Ali Khoshbin a écrit :
> Dear Colleagues,
> I am a newbie in Linux Sendmail. I get the below error while trying to send an email via Sendmail by command:
>
> sendmail user@domain.com < email.txt
>
> sendmail log is as below:
> Jan 12 09:37:54 mail3 sendmail[523382]: 20C67sIA523382: to=user@domain.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=sendmail user@domain.com < email.txtrelay, pri=30029, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
>
> My configuration is as below:
> CentOS Linux release 8.5.2111.
> sendmail version as below:
> sendmail.x86_64 8.15.2-34.el8 @appstream
> sendmail-cf.noarch 8.15.2-34.el8 @appstream
>
> Listening ports:
> tcp 0 0 validIP:25 0.0.0.0:* LISTEN 113547/sendmail: ac
> tcp 0 0 InvalidIP:25 0.0.0.0:* LISTEN 113547/sendmail: ac
>
>
> service sendmail status:
> Redirecting to /bin/systemctl status sendmail.service
> ● sendmail.service - Sendmail Mail Transport Agent
> Loaded: loaded (/usr/lib/systemd/system/sendmail.service; enabled; vendor preset: disabled)
> Active: active (running) since Sun 2022-01-09 10:20:10 +0330; 3 days ago
> Process: 113546 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG (code=exited, status=0/SUCCESS)
> Process: 113541 ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS)
> Process: 113539 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)
> Main PID: 113547 (sendmail)
> Tasks: 1 (limit: 48769)
> Memory: 3.0M
> CGroup: /system.slice/sendmail.service
> └─113547 sendmail: accepting connections
>
> Jan 09 10:20:10 mailX systemd[1]: Starting Sendmail Mail Transport Agent...
> Jan 09 10:20:10 mailX sendmail[113547]: starting daemon (8.15.2): SMTP+queueing@01:00:00
> Jan 09 10:20:10 mailX systemd[1]: sendmail.service: Can't open PID file /run/sendmail.pid (yet?) after start: No suc>
> Jan 09 10:20:10 mailX systemd[1]: Started Sendmail Mail Transport Agent.
>
>
> vim /etc/mail/local-host-names
>
> below entry exists in above file
> mailX.domain.com
>
> altered sendmail.mc file
>
>
> executed
> sudo m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
>
> with no problem.
>
> What do you think that my issue may be that I cannot send email & receive this error as mentioned above in my maillog folder:
>
> Jan 12 09:37:54 mail3 sendmail[523382]: 20C67sIA523382: to=user@domain.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=sendmail user@domain.com < email.txtrelay, pri=30dnl #

>
>
Check your sendmail.mc to contains :

dnl #
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl #

Re: Sendmail error (Connection refused by [127.0.0.1])

<8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=469&group=comp.mail.sendmail#469

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a05:6000:2cf:b0:212:27f2:a6c5 with SMTP id o15-20020a05600002cf00b0021227f2a6c5mr16775217wry.530.1655617833911;
Sat, 18 Jun 2022 22:50:33 -0700 (PDT)
X-Received: by 2002:a25:e7d0:0:b0:668:a663:7776 with SMTP id
e199-20020a25e7d0000000b00668a6637776mr14936068ybh.31.1655617833221; Sat, 18
Jun 2022 22:50:33 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.88.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Sat, 18 Jun 2022 22:50:32 -0700 (PDT)
In-Reply-To: <srpgfk$f6e$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=77.237.95.67; posting-account=CdC8vgoAAACBnP1WmTpWJT80mHuiSPnY
NNTP-Posting-Host: 77.237.95.67
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com> <srpgfk$f6e$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com>
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
From: company9...@gmail.com (company 99001)
Injection-Date: Sun, 19 Jun 2022 05:50:33 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: company 99001 - Sun, 19 Jun 2022 05:50 UTC

On Thursday, January 13, 2022 at 6:58:54 PM UTC+3:30, zeneca wrote:
> Le 12/01/22 à 09:41, Ali Khoshbin a écrit :
> > Dear Colleagues,
> > I am a newbie in Linux Sendmail. I get the below error while trying to send an email via Sendmail by command:
> >
> > sendmail us...@domain.com < email.txt
> >
> > sendmail log is as below:
> > Jan 12 09:37:54 mail3 sendmail[523382]: 20C67sIA523382: to=us...@domain.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=sendmail us...@domain.com < email.txtrelay, pri=30029, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
> >
> > My configuration is as below:
> > CentOS Linux release 8.5.2111.
> > sendmail version as below:
> > sendmail.x86_64 8.15.2-34.el8 @appstream
> > sendmail-cf.noarch 8.15.2-34.el8 @appstream
> >
> > Listening ports:
> > tcp 0 0 validIP:25 0.0.0.0:* LISTEN 113547/sendmail: ac
> > tcp 0 0 InvalidIP:25 0.0.0.0:* LISTEN 113547/sendmail: ac
> >
> >
> > service sendmail status:
> > Redirecting to /bin/systemctl status sendmail.service
> > ● sendmail.service - Sendmail Mail Transport Agent
> > Loaded: loaded (/usr/lib/systemd/system/sendmail.service; enabled; vendor preset: disabled)
> > Active: active (running) since Sun 2022-01-09 10:20:10 +0330; 3 days ago
> > Process: 113546 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG (code=exited, status=0/SUCCESS)
> > Process: 113541 ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS)
> > Process: 113539 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)
> > Main PID: 113547 (sendmail)
> > Tasks: 1 (limit: 48769)
> > Memory: 3.0M
> > CGroup: /system.slice/sendmail.service
> > └─113547 sendmail: accepting connections
> >
> > Jan 09 10:20:10 mailX systemd[1]: Starting Sendmail Mail Transport Agent...
> > Jan 09 10:20:10 mailX sendmail[113547]: starting daemon (8.15.2): SMTP+queueing@01:00:00
> > Jan 09 10:20:10 mailX systemd[1]: sendmail.service: Can't open PID file /run/sendmail.pid (yet?) after start: No suc>
> > Jan 09 10:20:10 mailX systemd[1]: Started Sendmail Mail Transport Agent..
> >
> >
> > vim /etc/mail/local-host-names
> >
> > below entry exists in above file
> > mailX.domain.com
> >
> > altered sendmail.mc file
> >
> >
> > executed
> > sudo m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
> >
> > with no problem.
> >
> > What do you think that my issue may be that I cannot send email & receive this error as mentioned above in my maillog folder:
> >
> > Jan 12 09:37:54 mail3 sendmail[523382]: 20C67sIA523382: to=us...@domain.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=sendmail us...@domain.com < email.txtrelay, pri=30dnl #
>
> >
> >
> Check your sendmail.mc to contains :
>
> dnl #
> DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
> dnl #

Hello,
Excuse me for the long delay.
Actually I was assigned to another task.
Now I have moved to setup the sendmail

My question is that:
I have added :
dnl #
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl #

to my sendmail.mc file but still the server does not listen to port 25 by running command "netstat -ant | grep :25
"

Do I have to add the server's valid IP to the sendmail.mc file too?

Thanks for your suggestions in advance

Re: Sendmail error (Connection refused by [127.0.0.1])

<20220619081331.092632ad@ryz>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=470&group=comp.mail.sendmail#470

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
Date: Sun, 19 Jun 2022 08:13:31 +0200
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <20220619081331.092632ad@ryz>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
<srpgfk$f6e$1@gioia.aioe.org>
<8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="31d24195d5368e48621cdd5f457c1a9e";
logging-data="15454"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xkx+IeSMA1RspEhCD0VGO"
Cancel-Lock: sha1:G9cRU2+EwJVcBIHekwTJ2alm9jM=
 by: Marco Moock - Sun, 19 Jun 2022 06:13 UTC

Am Samstag, 18. Juni 2022, um 22:50:32 Uhr schrieb company 99001:

> dnl #
> DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
> dnl #

Please use

DAEMON_OPTIONS(`Name=MTA, Addr=127.0.0.1, Port=smtp')dnl

without dnl or a space in front. dnl comments out a line in m4.

Then run sendmailconfig and check if it works.

Re: Sendmail error (Connection refused by [127.0.0.1])

<049d2450-d2d8-4494-8aa0-9598d68af820n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=471&group=comp.mail.sendmail#471

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a05:600c:4e88:b0:39c:7c53:d7ff with SMTP id f8-20020a05600c4e8800b0039c7c53d7ffmr34663576wmq.176.1655702364806;
Sun, 19 Jun 2022 22:19:24 -0700 (PDT)
X-Received: by 2002:a81:3956:0:b0:2f8:db28:2e87 with SMTP id
g83-20020a813956000000b002f8db282e87mr24948768ywa.134.1655702364237; Sun, 19
Jun 2022 22:19:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Sun, 19 Jun 2022 22:19:24 -0700 (PDT)
In-Reply-To: <20220619081331.092632ad@ryz>
Injection-Info: google-groups.googlegroups.com; posting-host=77.237.95.67; posting-account=CdC8vgoAAACBnP1WmTpWJT80mHuiSPnY
NNTP-Posting-Host: 77.237.95.67
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
<srpgfk$f6e$1@gioia.aioe.org> <8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com>
<20220619081331.092632ad@ryz>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <049d2450-d2d8-4494-8aa0-9598d68af820n@googlegroups.com>
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
From: company9...@gmail.com (company 99001)
Injection-Date: Mon, 20 Jun 2022 05:19:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 10029
 by: company 99001 - Mon, 20 Jun 2022 05:19 UTC

On Sunday, June 19, 2022 at 10:43:33 AM UTC+4:30, Marco Moock wrote:
> Am Samstag, 18. Juni 2022, um 22:50:32 Uhr schrieb company 99001:
>
> > dnl #
> > DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
> > dnl #
> Please use
>
> DAEMON_OPTIONS(`Name=MTA, Addr=127.0.0.1, Port=smtp')dnl
>
> without dnl or a space in front. dnl comments out a line in m4.
>
> Then run sendmailconfig and check if it works.

Hi 😊
Thanks for the comment but it does not work .
my sendmail.mc file content is as below:

divert(-1)dnl
dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
dnl # installed and then performing a
dnl #
dnl # /etc/mail/make
dnl #
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
dnl #
dnl # Do not advertize sendmail version.
dnl #
dnl define(`confSMTP_LOGIN_MSG', `$j Sendmail; $b')dnl
dnl #
dnl # default logging level is 9, you might want to set it higher to
dnl # debug the configuration
dnl #
dnl define(`confLOG_LEVEL', `9')dnl
dnl #
dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl #
dnl define(`SMART_HOST', `smtp.your.provider')dnl
dnl #
define(`confDEF_USER_ID', ``8:12'')dnl
dnl define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST', `True')dnl
define(`confDONT_PROBE_INTERFACES', `True')dnl
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
dnl #
dnl # The following allows relaying if the user authenticates, and disallows
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
dnl #
dnl define(`confAUTH_OPTIONS', `A p')dnl
dnl #
dnl # which realm to use in SASL database (sasldb2)
dnl #
define(`confAUTH_REALM', `mail')dnl
dnl #
dnl # PLAIN is the preferred plaintext authentication method and used by
dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do
dnl # use LOGIN. Other mechanisms should be used if the connection is not
dnl # guaranteed secure.
dnl # Please remember that saslauthd needs to be running for AUTH.
dnl #
dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl #
dnl # Basic sendmail TLS configuration with self-signed certificate for
dnl # inbound SMTP (and also opportunistic TLS for outbound SMTP).
dnl #
define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl
define(`confCACERT', `/etc/pki/tls/certs/ca-bundle.crt')dnl
define(`confSERVER_CERT', `/etc/pki/tls/certs/sendmail.pem')dnl
define(`confSERVER_KEY', `/etc/pki/tls/private/sendmail.key')dnl
define(`confTLS_SRV_OPTIONS', `V')dnl
dnl #
dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's
dnl # slapd, which requires the file to be readble by group ldap
dnl #
dnl define(`confDONT_BLAME_SENDMAIL', `groupreadablekeyfile')dnl
dnl #
dnl define(`confTO_QUEUEWARN', `4h')dnl
dnl define(`confTO_QUEUERETURN', `5d')dnl
dnl define(`confQUEUE_LA', `12')dnl
dnl define(`confREFUSE_LA', `18')dnl
define(`confTO_IDENT', `0')dnl
dnl # If you're operating in a DSCP/RFC-4594 environment with QoS
dnl define(`confINET_QOS', `AF11')dnl
dnl FEATURE(delay_checks)dnl
FEATURE(`no_default_msa', `dnl')dnl
FEATURE(`smrsh', `/usr/sbin/smrsh')dnl
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
dnl #
dnl # The following limits the number of processes sendmail can fork to accept
dnl # incoming messages or process its message queues to 20.) sendmail refuses
dnl # to accept connections once it has reached its quota of child processes.
dnl #
dnl define(`confMAX_DAEMON_CHILDREN', `20')dnl
dnl #
dnl # Limits the number of new connections per second. This caps the overhead
dnl # incurred due to forking new sendmail processes. May be useful against
dnl # DoS attacks or barrages of spam. (As mentioned below, a per-IP address
dnl # limit would be useful but is not available as an option at this writing.)
dnl #
dnl define(`confCONNECTION_RATE_THROTTLE', `3')dnl
dnl #
dnl # The -t option will retry delivery if e.g. the user runs over his quota.
dnl #
FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
dnl #
dnl # For using Cyrus-IMAPd as POP3/IMAP server through LMTP delivery uncomment
dnl # the following 2 definitions and activate below in the MAILER section the
dnl # cyrusv2 mailer.
dnl #
dnl define(`confLOCAL_MAILER', `cyrusv2')dnl
dnl define(`CYRUSV2_MAILER_ARGS', `FILE /var/lib/imap/socket/lmtp')dnl
dnl #
dnl # The following causes sendmail to only listen on the IPv4 loopback address
DAEMON_OPTIONS(`Name=MTA, Addr=127.0.0.1, Port=smtp')dnl

dnl #
dnl # The following causes sendmail to additionally listen to port 587 for
dnl # mail from MUAs that authenticate. Roaming users who can't reach their
dnl # preferred sendmail daemon due to port 25 being blocked or redirected find
dnl # this useful.
dnl #
dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
dnl #
dnl # The following causes sendmail to additionally listen to port 465, but
dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed
dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't
dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS
dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps
dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.
dnl #
dnl # For this to work your OpenSSL certificates must be configured.
dnl #
dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
dnl #
dnl # The following causes sendmail to additionally listen on the IPv6 loopback
dnl # device. Remove the loopback address restriction listen to the network..
dnl #
dnl # "NEW COMMENT BY ALI" DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
dnl #
dnl # enable both ipv6 and ipv4 in sendmail:
dnl #
dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
dnl #
dnl # We strongly recommend not accepting unresolvable domains if you want to
dnl # protect yourself from spam. However, the laptop and users on computers
dnl # that do not have 24x7 DNS do need this.
dnl #
FEATURE(`accept_unresolvable_domains')dnl
dnl #
dnl FEATURE(`relay_based_on_MX')dnl
dnl #
dnl # Also accept email sent to "localhost.localdomain" as local email.
dnl #
LOCAL_DOMAIN(`mail3.mydomain.com')dnl
dnl #
dnl # The following example makes mail from this host and any additional
dnl # specified domains appear to be sent from mydomain.com
dnl #
dnl MASQUERADE_AS(`mydomain.com')dnl
dnl #
dnl # masquerade not just the headers, but the envelope as well
dnl #
dnl FEATURE(masquerade_envelope)dnl
dnl #
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
dnl #
dnl FEATURE(masquerade_entire_domain)dnl
dnl #
dnl MASQUERADE_DOMAIN(localhost)dnl
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
dnl MAILER(cyrusv2)dnl

Then i executed the command below :

sudo m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

then used below command to sendmail :

/usr/sbin/sendmail info@me.org
Subject:Hello
just for test
ctrl+D

now I checked the log in /var/log/maillog

Jun 20 09:12:46 mail3 sendmail[150479]: 25K4gUCY150479: to=info@mydomain..com, ctladdr=root (0/0), delay=00:00:16, xdelay=00:00:00, mailer=relay, pri=30037, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Re: Sendmail error (Connection refused by [127.0.0.1])

<t8p0kg$1ie$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=472&group=comp.mail.sendmail#472

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.veps.esmtp.org!not-for-mail
From: INVALID_...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
Date: Mon, 20 Jun 2022 01:29:52 -0400 (EDT)
Organization: MGT Consulting
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <t8p0kg$1ie$1@news.misty.com>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com> <srpgfk$f6e$1@gioia.aioe.org> <8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 20 Jun 2022 05:29:52 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="veps.esmtp.org:155.138.203.148";
logging-data="1614"; mail-complaints-to="abuse@misty.com"
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Mon, 20 Jun 2022 05:29 UTC

Did you ever try what was suggested in other replies?

telnet 127.0.0.1 25
and
telnet 127.0.0.1 587
?

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

Re: Sendmail error (Connection refused by [127.0.0.1])

<1230fab8-1509-4b68-8ea3-f9df0389617en@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=473&group=comp.mail.sendmail#473

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a5d:4ec4:0:b0:210:21a5:2007 with SMTP id s4-20020a5d4ec4000000b0021021a52007mr20894510wrv.348.1655705300878;
Sun, 19 Jun 2022 23:08:20 -0700 (PDT)
X-Received: by 2002:a25:1982:0:b0:663:e701:8fd0 with SMTP id
124-20020a251982000000b00663e7018fd0mr24877547ybz.185.1655705300339; Sun, 19
Jun 2022 23:08:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.88.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Sun, 19 Jun 2022 23:08:20 -0700 (PDT)
In-Reply-To: <t8p0kg$1ie$1@news.misty.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.237.95.67; posting-account=qbHGgQoAAACro2eBoQs8vQxH2yhBGGeF
NNTP-Posting-Host: 77.237.95.67
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
<srpgfk$f6e$1@gioia.aioe.org> <8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com>
<t8p0kg$1ie$1@news.misty.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1230fab8-1509-4b68-8ea3-f9df0389617en@googlegroups.com>
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
From: akhosh...@gmail.com (Ali Khoshbin)
Injection-Date: Mon, 20 Jun 2022 06:08:20 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Ali Khoshbin - Mon, 20 Jun 2022 06:08 UTC

Hi,
I got the "connection refused" while trying to telnet to the IP & ports related to smtp as it shows the sendmail is not listening on this port.
What should I do?
Thanks in advance for your priceless help.

Re: Sendmail error (Connection refused by [127.0.0.1])

<20220620083009.47d5c32c@M09428>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=474&group=comp.mail.sendmail#474

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
Date: Mon, 20 Jun 2022 08:30:09 +0200
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <20220620083009.47d5c32c@M09428>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
<srpgfk$f6e$1@gioia.aioe.org>
<8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com>
<20220619081331.092632ad@ryz>
<049d2450-d2d8-4494-8aa0-9598d68af820n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="80015b06845f536bcf37569afa6952f6";
logging-data="13372"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pvgqeIR974r1fN50Vw1j3"
Cancel-Lock: sha1:iaRMEY+dPTqfiN2IiyiaLKhemNE=
 by: Marco Moock - Mon, 20 Jun 2022 06:30 UTC

Am Sun, 19 Jun 2022 22:19:24 -0700 (PDT)
schrieb company 99001 <company99001@gmail.com>:

> Thanks for the comment but it does not work .
> my sendmail.mc file content is as below:

I am not an m4 expert, but you have divert(-1)dnl
at the beginning and no divert again, so I assume all content of your
m4 file is being discarded.
Please check that by running m4 /path/sendmail.mc manually.

Re: Sendmail error (Connection refused by [127.0.0.1])

<t8p8bm$b78$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=475&group=comp.mail.sendmail#475

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.veps.esmtp.org!not-for-mail
From: INVALID_...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
Date: Mon, 20 Jun 2022 03:41:42 -0400 (EDT)
Organization: MGT Consulting
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <t8p8bm$b78$1@news.misty.com>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com> <8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com> <t8p0kg$1ie$1@news.misty.com> <1230fab8-1509-4b68-8ea3-f9df0389617en@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 20 Jun 2022 07:41:42 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="veps.esmtp.org:155.138.203.148";
logging-data="11496"; mail-complaints-to="abuse@misty.com"
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Mon, 20 Jun 2022 07:41 UTC

What's the output of

grep '^O DaemonP' /etc/mail/se*cf
netstat -na -p tcp | egrep '\.(25|587) '

is sendmail running using /etc/mail/se*cf?

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

Re: Sendmail error (Connection refused by [127.0.0.1])

<1a157bff-0a38-4fc4-9cd2-28eb87b0a8d3n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=476&group=comp.mail.sendmail#476

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a05:600c:35c1:b0:39c:7930:7b5b with SMTP id r1-20020a05600c35c100b0039c79307b5bmr33606613wmq.162.1655712637733;
Mon, 20 Jun 2022 01:10:37 -0700 (PDT)
X-Received: by 2002:a25:1982:0:b0:663:e701:8fd0 with SMTP id
124-20020a251982000000b00663e7018fd0mr25237946ybz.185.1655712637159; Mon, 20
Jun 2022 01:10:37 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Mon, 20 Jun 2022 01:10:36 -0700 (PDT)
In-Reply-To: <20220620083009.47d5c32c@M09428>
Injection-Info: google-groups.googlegroups.com; posting-host=77.237.95.67; posting-account=CdC8vgoAAACBnP1WmTpWJT80mHuiSPnY
NNTP-Posting-Host: 77.237.95.67
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
<srpgfk$f6e$1@gioia.aioe.org> <8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com>
<20220619081331.092632ad@ryz> <049d2450-d2d8-4494-8aa0-9598d68af820n@googlegroups.com>
<20220620083009.47d5c32c@M09428>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1a157bff-0a38-4fc4-9cd2-28eb87b0a8d3n@googlegroups.com>
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
From: company9...@gmail.com (company 99001)
Injection-Date: Mon, 20 Jun 2022 08:10:37 +0000
Content-Type: text/plain; charset="UTF-8"
 by: company 99001 - Mon, 20 Jun 2022 08:10 UTC

Hello
thanks
I am waiting for other friends comments too or even a correct sendmail.mc file.
Yours,

Re: Sendmail error (Connection refused by [127.0.0.1])

<20220620101451.53e66d28@M09428>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=477&group=comp.mail.sendmail#477

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
Date: Mon, 20 Jun 2022 10:14:51 +0200
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <20220620101451.53e66d28@M09428>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
<srpgfk$f6e$1@gioia.aioe.org>
<8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com>
<20220619081331.092632ad@ryz>
<049d2450-d2d8-4494-8aa0-9598d68af820n@googlegroups.com>
<20220620083009.47d5c32c@M09428>
<1a157bff-0a38-4fc4-9cd2-28eb87b0a8d3n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="80015b06845f536bcf37569afa6952f6";
logging-data="27872"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Y67Wcin/IGBNkfA1N0u1Q"
Cancel-Lock: sha1:IWj2Cia66ciEdaeh7D2Oy9EQ9AY=
 by: Marco Moock - Mon, 20 Jun 2022 08:14 UTC

Am Mon, 20 Jun 2022 01:10:36 -0700 (PDT)
schrieb company 99001 <company99001@gmail.com>:

> I am waiting for other friends comments too or even a correct
> sendmail.mc file.

You need to check YOUR file. Or use the standard sendmail.mc provided
by your distribution and change only the lines you want.
Please check the part about divert.

Or you can download and extract it from the tarball from your
distribution.
If you need further help, provide info about the OS you use.

Re: Sendmail error (Connection refused by [127.0.0.1])

<653f40cd-bd89-4e94-a8b6-7e6dde11529en@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=480&group=comp.mail.sendmail#480

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a5d:604a:0:b0:21b:9517:66eb with SMTP id j10-20020a5d604a000000b0021b951766ebmr3585530wrt.494.1655784781041;
Mon, 20 Jun 2022 21:13:01 -0700 (PDT)
X-Received: by 2002:a05:6902:b:b0:668:e2a0:5c2 with SMTP id
l11-20020a056902000b00b00668e2a005c2mr13958399ybh.389.1655784780313; Mon, 20
Jun 2022 21:13:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Mon, 20 Jun 2022 21:13:00 -0700 (PDT)
In-Reply-To: <20220620101451.53e66d28@M09428>
Injection-Info: google-groups.googlegroups.com; posting-host=77.237.95.67; posting-account=CdC8vgoAAACBnP1WmTpWJT80mHuiSPnY
NNTP-Posting-Host: 77.237.95.67
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
<srpgfk$f6e$1@gioia.aioe.org> <8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com>
<20220619081331.092632ad@ryz> <049d2450-d2d8-4494-8aa0-9598d68af820n@googlegroups.com>
<20220620083009.47d5c32c@M09428> <1a157bff-0a38-4fc4-9cd2-28eb87b0a8d3n@googlegroups.com>
<20220620101451.53e66d28@M09428>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <653f40cd-bd89-4e94-a8b6-7e6dde11529en@googlegroups.com>
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
From: company9...@gmail.com (company 99001)
Injection-Date: Tue, 21 Jun 2022 04:13:01 +0000
Content-Type: text/plain; charset="UTF-8"
 by: company 99001 - Tue, 21 Jun 2022 04:13 UTC

Hello,
Thanks for all the support from my excellent colleagues.
The version is as below:
CentOS Linux release 8.5.2111
Sendmail version:Version 8.15.2

I would be thankful to get the source sendmail file.

Thanks again

Re: Sendmail error (Connection refused by [127.0.0.1])

<t8riug$5ij$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=481&group=comp.mail.sendmail#481

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.veps.esmtp.org!not-for-mail
From: INVALID_...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
Date: Tue, 21 Jun 2022 00:54:40 -0400 (EDT)
Organization: MGT Consulting
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <t8riug$5ij$1@news.misty.com>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com> <1a157bff-0a38-4fc4-9cd2-28eb87b0a8d3n@googlegroups.com> <20220620101451.53e66d28@M09428> <653f40cd-bd89-4e94-a8b6-7e6dde11529en@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 21 Jun 2022 04:54:40 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="veps.esmtp.org:155.138.203.148";
logging-data="5715"; mail-complaints-to="abuse@misty.com"
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Tue, 21 Jun 2022 04:54 UTC

company 99001 wrote:

> I would be thankful to get the source sendmail file.

Have you looked at
https://ftp.sendmail.org/

Anyway, that won't fix your configuration problem...
Still waiting for your answers to my questions.

Re: Sendmail error (Connection refused by [127.0.0.1])

<56884569-6cd6-4735-9eb4-60852849c040n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=482&group=comp.mail.sendmail#482

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a5d:4d12:0:b0:21b:88ac:9250 with SMTP id z18-20020a5d4d12000000b0021b88ac9250mr13987669wrt.136.1655791068409;
Mon, 20 Jun 2022 22:57:48 -0700 (PDT)
X-Received: by 2002:a0d:c103:0:b0:314:1aa7:8efb with SMTP id
c3-20020a0dc103000000b003141aa78efbmr31145824ywd.87.1655791067882; Mon, 20
Jun 2022 22:57:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!pasdenom.info!usenet-fr.net!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Mon, 20 Jun 2022 22:57:47 -0700 (PDT)
In-Reply-To: <t8riug$5ij$1@news.misty.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.237.95.67; posting-account=CdC8vgoAAACBnP1WmTpWJT80mHuiSPnY
NNTP-Posting-Host: 77.237.95.67
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
<1a157bff-0a38-4fc4-9cd2-28eb87b0a8d3n@googlegroups.com> <20220620101451.53e66d28@M09428>
<653f40cd-bd89-4e94-a8b6-7e6dde11529en@googlegroups.com> <t8riug$5ij$1@news.misty.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <56884569-6cd6-4735-9eb4-60852849c040n@googlegroups.com>
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
From: company9...@gmail.com (company 99001)
Injection-Date: Tue, 21 Jun 2022 05:57:48 +0000
Content-Type: text/plain; charset="UTF-8"
 by: company 99001 - Tue, 21 Jun 2022 05:57 UTC

Hi,
grep '^O DaemonP' /etc/mail/se*cf
O DaemonPortOptions=Name=MTA, Addr=127.0.0.1, Port=smtp

netstat -na -p tcp | egrep '\.(25|587)
No result

Re: Sendmail error (Connection refused by [127.0.0.1])

<t8rq8a$eaa$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=483&group=comp.mail.sendmail#483

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.veps.esmtp.org!not-for-mail
From: INVALID_...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
Date: Tue, 21 Jun 2022 02:59:22 -0400 (EDT)
Organization: MGT Consulting
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <t8rq8a$eaa$1@news.misty.com>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com> <653f40cd-bd89-4e94-a8b6-7e6dde11529en@googlegroups.com> <t8riug$5ij$1@news.misty.com> <56884569-6cd6-4735-9eb4-60852849c040n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 21 Jun 2022 06:59:22 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="veps.esmtp.org:155.138.203.148";
logging-data="14666"; mail-complaints-to="abuse@misty.com"
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Tue, 21 Jun 2022 06:59 UTC

company 99001 wrote:

> netstat -na -p tcp | egrep '\.(25|587)
> No result

Really?
First: there is a ' missing, so your shell should ask for more input...
Second, which OS?
If you run Linux instead of *BSD:

netstat -na -t | egrep ':(25|587)'

Anyway, did you restart the sendmail daemon?
If so, is it running?

ps axuw| fgrep sendmail

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

Re: Sendmail error (Connection refused by [127.0.0.1])

<6e74dbe3-4510-43fe-8af2-988e5b5d3c03n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=485&group=comp.mail.sendmail#485

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:adf:db8f:0:b0:21b:9bc6:fb5 with SMTP id u15-20020adfdb8f000000b0021b9bc60fb5mr6713475wri.529.1656231510748;
Sun, 26 Jun 2022 01:18:30 -0700 (PDT)
X-Received: by 2002:a05:6902:2ce:b0:64b:9bbd:34fa with SMTP id
w14-20020a05690202ce00b0064b9bbd34famr7396840ybh.440.1656231510237; Sun, 26
Jun 2022 01:18:30 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.88.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Sun, 26 Jun 2022 01:18:30 -0700 (PDT)
In-Reply-To: <t8rq8a$eaa$1@news.misty.com>
Injection-Info: google-groups.googlegroups.com; posting-host=81.12.21.196; posting-account=CdC8vgoAAACBnP1WmTpWJT80mHuiSPnY
NNTP-Posting-Host: 81.12.21.196
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
<653f40cd-bd89-4e94-a8b6-7e6dde11529en@googlegroups.com> <t8riug$5ij$1@news.misty.com>
<56884569-6cd6-4735-9eb4-60852849c040n@googlegroups.com> <t8rq8a$eaa$1@news.misty.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6e74dbe3-4510-43fe-8af2-988e5b5d3c03n@googlegroups.com>
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
From: company9...@gmail.com (company 99001)
Injection-Date: Sun, 26 Jun 2022 08:18:30 +0000
Content-Type: text/plain; charset="UTF-8"
 by: company 99001 - Sun, 26 Jun 2022 08:18 UTC

Hello,
I am running CentOS Linux release 8.5.2111.
My sendmail version is also Version 8.15.2
No result was shown after executing the command: netstat -na -t | egrep ':(25|587)'
there exist issue in restarting the mdameon service.
Is there any raw copy of sendmail.mc file avilable for download?
Thanks for all your help

Re: Sendmail error (Connection refused by [127.0.0.1])

<t995a0$m86$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=486&group=comp.mail.sendmail#486

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.veps.esmtp.org!not-for-mail
From: INVALID_...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
Date: Sun, 26 Jun 2022 04:27:44 -0400 (EDT)
Organization: MGT Consulting
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <t995a0$m86$1@news.misty.com>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com> <56884569-6cd6-4735-9eb4-60852849c040n@googlegroups.com> <t8rq8a$eaa$1@news.misty.com> <6e74dbe3-4510-43fe-8af2-988e5b5d3c03n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 26 Jun 2022 08:27:44 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="veps.esmtp.org:155.138.203.148";
logging-data="22790"; mail-complaints-to="abuse@misty.com"
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Sun, 26 Jun 2022 08:27 UTC

company 99001 wrote:

> there exist issue in restarting the mdameon service.

What is "mdameon"? "mdaemon: email server for windows"?
Are you running sendmail?
sendmail -bD &
and then try netstat / telnet etc. as explained before

> Is there any raw copy of sendmail.mc file avilable for download?

There are probably millions of them (tried a search engine?)
and most of them are different... how is that going to help you?
You can download the sendmail source code (URL given before) and
look into cf/cf/

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

Re: Sendmail error (Connection refused by [127.0.0.1])

<20220626103956.03aa2e3a@ryz>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=487&group=comp.mail.sendmail#487

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
Date: Sun, 26 Jun 2022 10:39:56 +0200
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <20220626103956.03aa2e3a@ryz>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
<653f40cd-bd89-4e94-a8b6-7e6dde11529en@googlegroups.com>
<t8riug$5ij$1@news.misty.com>
<56884569-6cd6-4735-9eb4-60852849c040n@googlegroups.com>
<t8rq8a$eaa$1@news.misty.com>
<6e74dbe3-4510-43fe-8af2-988e5b5d3c03n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="bdc3031aa2400c9d4035b68849d411e3";
logging-data="4068529"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19o2rGZetihpBwjrfS8utR4"
Cancel-Lock: sha1:lu1RoUwAtgggkhE3LSa8CMj2YJ8=
 by: Marco Moock - Sun, 26 Jun 2022 08:39 UTC

Am Sonntag, 26. Juni 2022, um 01:18:30 Uhr schrieb company 99001:

> Is there any raw copy of sendmail.mc file avilable for download?

You already showed us your mc file and I told you aber the divert
issue. Please post your mc file here and we tell you where to change
it, ok?

Re: Sendmail error (Connection refused by [127.0.0.1])

<t9972k$on6$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=488&group=comp.mail.sendmail#488

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.veps.esmtp.org!not-for-mail
From: INVALID_...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
Date: Sun, 26 Jun 2022 04:57:56 -0400 (EDT)
Organization: MGT Consulting
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <t9972k$on6$1@news.misty.com>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com> <8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com> <20220619081331.092632ad@ryz> <049d2450-d2d8-4494-8aa0-9598d68af820n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 26 Jun 2022 08:57:56 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="veps.esmtp.org:155.138.203.148";
logging-data="25318"; mail-complaints-to="abuse@misty.com"
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Sun, 26 Jun 2022 08:57 UTC

company 99001 wrote:

> Thanks for the comment but it does not work .
> my sendmail.mc file content is as below:

Delete all the lines starting with dnl and then remove
FEATURE(`no_default_msa', `dnl')dnl

->

divert(-1)dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID', ``8:12'')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST', `True')dnl
define(`confDONT_PROBE_INTERFACES', `True')dnl
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
define(`confAUTH_REALM', `mail')dnl
define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl
define(`confCACERT', `/etc/pki/tls/certs/ca-bundle.crt')dnl
define(`confSERVER_CERT', `/etc/pki/tls/certs/sendmail.pem')dnl
define(`confSERVER_KEY', `/etc/pki/tls/private/sendmail.key')dnl
define(`confTLS_SRV_OPTIONS', `V')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`smrsh', `/usr/sbin/smrsh')dnl
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`Name=MTA, Addr=127.0.0.1, Port=smtp')dnl
FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`mail3.mydomain.com')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

rebuild the cf file, restart sendmail(!), and try:

date | /usr/sbin/sendmail -v info@me.org

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

Re: Sendmail error (Connection refused by [127.0.0.1])

<b5740915-c6e3-4fbe-bf1c-cfaff1641ec4n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=489&group=comp.mail.sendmail#489

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a05:6000:695:b0:21a:3a1a:7b60 with SMTP id bo21-20020a056000069500b0021a3a1a7b60mr15435601wrb.441.1656397711379;
Mon, 27 Jun 2022 23:28:31 -0700 (PDT)
X-Received: by 2002:a25:a282:0:b0:669:b4d5:49fe with SMTP id
c2-20020a25a282000000b00669b4d549femr17567015ybi.14.1656397710842; Mon, 27
Jun 2022 23:28:30 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Mon, 27 Jun 2022 23:28:30 -0700 (PDT)
In-Reply-To: <t9972k$on6$1@news.misty.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.237.95.80; posting-account=qbHGgQoAAACro2eBoQs8vQxH2yhBGGeF
NNTP-Posting-Host: 77.237.95.80
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
<8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com> <20220619081331.092632ad@ryz>
<049d2450-d2d8-4494-8aa0-9598d68af820n@googlegroups.com> <t9972k$on6$1@news.misty.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b5740915-c6e3-4fbe-bf1c-cfaff1641ec4n@googlegroups.com>
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
From: akhosh...@gmail.com (Ali Khoshbin)
Injection-Date: Tue, 28 Jun 2022 06:28:31 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Ali Khoshbin - Tue, 28 Jun 2022 06:28 UTC

Hello,
First of all Thanks for your time

I edited the sendmail.mc file & rebuild the file with no error
then tried to send email & checked the logfile. There is the same error
Jun 28 10:46:20 mail3 sendmail[300672]: 25S6FwAK300672: to=info@mydomain.com, ctladdr=root (0/0), delay=00:00:22, xdelay=00:00:00, mailer=relay, pri=30045, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

For your info
When I run netstat -ant | grep :25 there is no result

Trying to run service sendmail status provides below error

Redirecting to /bin/systemctl status sendmail.service
● sendmail.service - Sendmail Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/sendmail.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2022-06-15 14:03:23 +0430; 1 weeks 5 days ago
Process: 61593 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG (code=exited, status=70)
Process: 61588 ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS)
Process: 61586 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)

Jun 15 14:03:23 mail3 systemd[1]: Starting Sendmail Mail Transport Agent...
Jun 15 14:03:23 mail3 sendmail[61593]: 554 5.0.0 /etc/mail/sendmail.cf: line 64: unknown configuration line "
Jun 15 14:03:23 mail3 sendmail[61593]: "
Jun 15 14:03:23 mail3 sendmail[61593]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 64: unknown configuration line "\n"
Jun 15 14:03:23 mail3 systemd[1]: sendmail.service: Control process exited, code=exited status=70
Jun 15 14:03:23 mail3 systemd[1]: sendmail.service: Failed with result 'exit-code'.
Jun 15 14:03:23 mail3 systemd[1]: Failed to start Sendmail Mail Transport Agent.
[root@mail3 log]# service sendmail status
Redirecting to /bin/systemctl status sendmail.service
● sendmail.service - Sendmail Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/sendmail.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2022-06-15 14:03:23 +0430; 1 weeks 5 days ago
Process: 61593 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG (code=exited, status=70)
Process: 61588 ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS)
Process: 61586 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)

Jun 15 14:03:23 mail3 systemd[1]: Starting Sendmail Mail Transport Agent...
Jun 15 14:03:23 mail3 sendmail[61593]: 554 5.0.0 /etc/mail/sendmail.cf: line 64: unknown configuration line "
Jun 15 14:03:23 mail3 sendmail[61593]: "
Jun 15 14:03:23 mail3 sendmail[61593]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 64: unknown configuration line "\n"
Jun 15 14:03:23 mail3 systemd[1]: sendmail.service: Control process exited, code=exited status=70
Jun 15 14:03:23 mail3 systemd[1]: sendmail.service: Failed with result 'exit-code'.
Jun 15 14:03:23 mail3 systemd[1]: Failed to start Sendmail Mail Transport Age

Re: Sendmail error (Connection refused by [127.0.0.1])

<t9e7bf$5gj$1@freeq.furie.org.uk>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=490&group=comp.mail.sendmail#490

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!news.furie.org.uk!.POSTED.bigblack.furie.org.uk!not-for-mail
From: tom...@furie.org.uk (Tom Furie)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
Date: Tue, 28 Jun 2022 06:33:19 -0000 (UTC)
Message-ID: <t9e7bf$5gj$1@freeq.furie.org.uk>
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
<8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com>
<20220619081331.092632ad@ryz>
<049d2450-d2d8-4494-8aa0-9598d68af820n@googlegroups.com>
<t9972k$on6$1@news.misty.com>
<b5740915-c6e3-4fbe-bf1c-cfaff1641ec4n@googlegroups.com>
Injection-Date: Tue, 28 Jun 2022 06:33:19 -0000 (UTC)
Injection-Info: freeq.furie.org.uk; posting-host="bigblack.furie.org.uk:2001:470:1f1d:50e::128";
logging-data="5651"; mail-complaints-to="usenet@furie.org.uk"
User-Agent: slrn/1.0.3 (Linux)
 by: Tom Furie - Tue, 28 Jun 2022 06:33 UTC

On 2022-06-28, Ali Khoshbin <akhoshbin@gmail.com> wrote:
> Trying to run service sendmail status provides below error
>
> Jun 15 14:03:23 mail3 sendmail[61593]: NOQUEUE: SYSERR(root):
> /etc/mail/sendmail.cf: line 64: unknown configuration line "\n"

Your clue is right there. There's an error at line 64 of
/etc/mail/sendmail.cf.

Cheers,
Tom

Re: Sendmail error (Connection refused by [127.0.0.1])

<f845660c-ae5e-442b-ac73-463675126bdbn@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=491&group=comp.mail.sendmail#491

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:adf:df8a:0:b0:21b:9219:634c with SMTP id z10-20020adfdf8a000000b0021b9219634cmr17449450wrl.669.1656428412662;
Tue, 28 Jun 2022 08:00:12 -0700 (PDT)
X-Received: by 2002:a05:6902:2ce:b0:64b:9bbd:34fa with SMTP id
w14-20020a05690202ce00b0064b9bbd34famr19552822ybh.440.1656428411962; Tue, 28
Jun 2022 08:00:11 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Tue, 28 Jun 2022 08:00:11 -0700 (PDT)
In-Reply-To: <t9e7bf$5gj$1@freeq.furie.org.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=77.237.95.80; posting-account=CdC8vgoAAACBnP1WmTpWJT80mHuiSPnY
NNTP-Posting-Host: 77.237.95.80
References: <938b0d79-d7df-4012-a2c4-0f1fabd7a1d4n@googlegroups.com>
<8f6ae00d-d6fd-46ce-9ae9-59e634748ea7n@googlegroups.com> <20220619081331.092632ad@ryz>
<049d2450-d2d8-4494-8aa0-9598d68af820n@googlegroups.com> <t9972k$on6$1@news.misty.com>
<b5740915-c6e3-4fbe-bf1c-cfaff1641ec4n@googlegroups.com> <t9e7bf$5gj$1@freeq.furie.org.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f845660c-ae5e-442b-ac73-463675126bdbn@googlegroups.com>
Subject: Re: Sendmail error (Connection refused by [127.0.0.1])
From: company9...@gmail.com (company 99001)
Injection-Date: Tue, 28 Jun 2022 15:00:12 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: company 99001 - Tue, 28 Jun 2022 15:00 UTC

Hi,
I had to turn off the server for an UPS test.
After restarting it. The sendmail started working.
strange situation.
Thanks to everyone specially Claus Aßmann for his great understanding & suggestions.
Ali,

Pages:12
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor