dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Dear Colleagues,Connection refused by [127.0.0.1]
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:
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
executedConnection refused by [127.0.0.1]
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:
Thanks in advance for your commentstcp 0 0 localhost:smtp 0.0.0.0:* LISTEN
Ali
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
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]
Dear Colleagues,Connection refused by [127.0.0.1]
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:
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 #
Le 12/01/22 à 09:41, Ali Khoshbin a écrit :Connection refused by [127.0.0.1]
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:
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 #
dnl #
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl #
Am Samstag, 18. Juni 2022, um 22:50:32 Uhr schrieb company 99001:
dnl #Please use
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl #
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.
Thanks for the comment but it does not work .
my sendmail.mc file content is as below:
I am waiting for other friends comments too or even a correct
sendmail.mc file.
I would be thankful to get the source sendmail file.
netstat -na -p tcp | egrep '\.(25|587)
No result
there exist issue in restarting the mdameon service.
Is there any raw copy of sendmail.mc file avilable for download?
Thanks for the comment but it does not work .
my sendmail.mc file content is as below:
Is there any raw copy of sendmail.mc file avilable for download?
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"
The sendmail started working.
strange situation.
Thanks for your comments. If I get enough time, I will check them.
Thanks again
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 81:38:41 |
Calls: | 6,658 |
Calls today: | 4 |
Files: | 12,203 |
Messages: | 5,333,318 |
Posted today: | 1 |