-------- Original Message -------- Subject: Re: [CentOS] Mail has quit working From: Nataraj <incoming-centos at rjl.com> Date: Mon, July 23, 2018 9:01 pm To: centos at centos.org On 07/23/2018 03:39 PM, TE Dukes wrote:> Hello, > > Mail has come to an abrupt stop. Running C7, postfix and dovecot. Using > Roundcube as the client. > > Mail stopped working Saturday and I cannot figure was has happened. I have > not touched this server except to upgrade packages. I believe Roundcube was > updated maybe a week ago but know I was getting mail since then. > > Crond is no longer send mail. I checked /var/spool/mail as well as /Maildir > in home directories. Zero byte files. > > Checked all logs and the only thing I could find was in /var/log/maillog : > warning hostname localhost does not resolve to address 127.0.0.1 > > I corrected that by changing inet_interfaces to localhost from all in > postfix.cf > > When I try to log in with Roundcube, it just times out. > > I'm stuck! > > TIA for any suggestions!! > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centosMore information would be helpful to troubleshoot this. Try sending output from: postfix status mailq Try telnetting to your smtp server and sending a message like this from the local system: substitute a valid user/domain on the mail from line and a valid email address in your domain on the rcpt to line. Do this, logged onto the mailserver. telnet localhost 25 helo mydomain.com (substitute a valid domain here) mail from: <someuser at validdomain.com> rcpt to: <youremailaddress at yourdomain.com> data From: someuser at validdomain.com to: youremailaddress at yourdomain.com subject: test This is a test mesage . note: blank line between mail headers and body end data with line containing only '.'. Then check your maillog and send the output to the list. Nataraj postfix status: postfix/postfix-script: the Postfix mail system is running: PID 5936 mailq: Mail queue is empty Did the telnet localhost 25, it answered but not sure I understood you what I needed to do. Thanks!!
> > Did the telnet localhost 25, it answered but not sure I understood you > what I needed to do. >?type all this in once connected, substituting as necessary & ignoring the comments in () helo mydomain.com (substitute a valid domain here) mail from: <someuser at validdomain.com> rcpt to: <youremailaddress at yourdomain.com> data From: someuser at validdomain.com to: youremailaddress at yourdomain.com subject: test (note blank line here) This is a test message .
> -----Original Message----- > From: CentOS [mailto:centos-bounces at centos.org] On Behalf Of > tdukes at palmettoshopper.com > Sent: Monday, July 23, 2018 9:28 PM > To: CentOS mailing list > Subject: Re: [CentOS] Mail has quit working > > > > > -------- Original Message -------- > Subject: Re: [CentOS] Mail has quit working > From: Nataraj <incoming-centos at rjl.com> > Date: Mon, July 23, 2018 9:01 pm > To: centos at centos.org > > On 07/23/2018 03:39 PM, TE Dukes wrote: > > Hello, > > > > Mail has come to an abrupt stop. Running C7, postfix and dovecot. Using > > Roundcube as the client. > > > > Mail stopped working Saturday and I cannot figure was has happened. I > have > > not touched this server except to upgrade packages. I believe Roundcube > was > > updated maybe a week ago but know I was getting mail since then. > > > > Crond is no longer send mail. I checked /var/spool/mail as well as/Maildir> > in home directories. Zero byte files. > > > > Checked all logs and the only thing I could find was in /var/log/maillog:> > warning hostname localhost does not resolve to address 127.0.0.1 > > > > I corrected that by changing inet_interfaces to localhost from all in > > postfix.cf > > > > When I try to log in with Roundcube, it just times out. > > > > I'm stuck! > > > > TIA for any suggestions!! > > > > _______________________________________________ > > CentOS mailing list > > CentOS at centos.org > > https://lists.centos.org/mailman/listinfo/centos > > More information would be helpful to troubleshoot this. Try sending > output from: > > postfix status > > mailq > > Try telnetting to your smtp server and sending a message like this from > the local system: > substitute a valid user/domain on the mail from line and a valid email > address in your domain > on the rcpt to line. Do this, logged onto the mailserver. > > telnet localhost 25 > helo mydomain.com (substitute a valid domain here) > mail from: <someuser at validdomain.com> > rcpt to: <youremailaddress at yourdomain.com> > data > From: someuser at validdomain.com > to: youremailaddress at yourdomain.com > subject: test > > This is a test mesage > . > > note: blank line between mail headers and body > > end data with line containing only '.'. > > Then check your maillog and send the output to the list. > > > Nataraj > > postfix status: > > postfix/postfix-script: the Postfix mail system is running: PID 5936 > > mailq: Mail queue is empty > > Did the telnet localhost 25, it answered but not sure I understood you > what I needed to do. > > Thanks!!Tried following your instructions and got 227 2.7.0 Error: I can break rules, too. Goodbye. Connection closed by foreign host.
On 07/23/2018 06:28 PM, tdukes at palmettoshopper.com wrote:> > > -------- Original Message -------- > Subject: Re: [CentOS] Mail has quit working > From: Nataraj <incoming-centos at rjl.com> > Date: Mon, July 23, 2018 9:01 pm > To: centos at centos.org > > On 07/23/2018 03:39 PM, TE Dukes wrote: >> Hello, >> >> Mail has come to an abrupt stop. Running C7, postfix and dovecot. Using >> Roundcube as the client. >> >> Mail stopped working Saturday and I cannot figure was has happened. I have >> not touched this server except to upgrade packages. I believe Roundcube was >> updated maybe a week ago but know I was getting mail since then. >> >> Crond is no longer send mail. I checked /var/spool/mail as well as /Maildir >> in home directories. Zero byte files. >> >> Checked all logs and the only thing I could find was in /var/log/maillog : >> warning hostname localhost does not resolve to address 127.0.0.1 >> >> I corrected that by changing inet_interfaces to localhost from all in >> postfix.cf >> >> When I try to log in with Roundcube, it just times out. >> >> I'm stuck! >> >> TIA for any suggestions!! >> >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> https://lists.centos.org/mailman/listinfo/centos > More information would be helpful to troubleshoot this. Try sending > output from: > > postfix status > > mailq > > Try telnetting to your smtp server and sending a message like this from > the local system: > substitute a valid user/domain on the mail from line and a valid email > address in your domain > on the rcpt to line. Do this, logged onto the mailserver. > > telnet localhost 25 > helo mydomain.com (substitute a valid domain here) > mail from: <someuser at validdomain.com> > rcpt to: <youremailaddress at yourdomain.com> > data > From: someuser at validdomain.com > to: youremailaddress at yourdomain.com > subject: test > > This is a test mesage > . > > note: blank line between mail headers and body > > end data with line containing only '.'. > > Then check your maillog and send the output to the list. > > > Nataraj > > postfix status: > > postfix/postfix-script: the Postfix mail system is running: PID 5936 > > mailq: Mail queue is empty > > Did the telnet localhost 25, it answered but not sure I understood you > what I needed to do.Simply telnet to mailserver on port 25 and type what I've shown, substituting valid email addresses and valid addresses in your domain as indicated. You can use your own domain for the hello command, i.e. "helo mydomain.com".? Everything between the data command and the '.' is input to the data command.? After you type the '.' the message will be sent and should be delivered to the user on the "rcpt to" line.? You should see logging of successful delivery or errors in the maillog. Nataraj
On 07/23/2018 06:46 PM, TE Dukes wrote:> >> -----Original Message----- >> From: CentOS [mailto:centos-bounces at centos.org] On Behalf Of >> tdukes at palmettoshopper.com >> Sent: Monday, July 23, 2018 9:28 PM >> To: CentOS mailing list >> Subject: Re: [CentOS] Mail has quit working >> >> >> >> >> -------- Original Message -------- >> Subject: Re: [CentOS] Mail has quit working >> From: Nataraj <incoming-centos at rjl.com> >> Date: Mon, July 23, 2018 9:01 pm >> To: centos at centos.org >> >> On 07/23/2018 03:39 PM, TE Dukes wrote: >>> Hello, >>> >>> Mail has come to an abrupt stop. Running C7, postfix and dovecot. Using >>> Roundcube as the client. >>> >>> Mail stopped working Saturday and I cannot figure was has happened. I >> have >>> not touched this server except to upgrade packages. I believe Roundcube >> was >>> updated maybe a week ago but know I was getting mail since then. >>> >>> Crond is no longer send mail. I checked /var/spool/mail as well as > /Maildir >>> in home directories. Zero byte files. >>> >>> Checked all logs and the only thing I could find was in /var/log/maillog > : >>> warning hostname localhost does not resolve to address 127.0.0.1 >>> >>> I corrected that by changing inet_interfaces to localhost from all in >>> postfix.cf >>> >>> When I try to log in with Roundcube, it just times out. >>> >>> I'm stuck! >>> >>> TIA for any suggestions!! >>> >>> _______________________________________________ >>> CentOS mailing list >>> CentOS at centos.org >>> https://lists.centos.org/mailman/listinfo/centos >> More information would be helpful to troubleshoot this. Try sending >> output from: >> >> postfix status >> >> mailq >> >> Try telnetting to your smtp server and sending a message like this from >> the local system: >> substitute a valid user/domain on the mail from line and a valid email >> address in your domain >> on the rcpt to line. Do this, logged onto the mailserver. >> >> telnet localhost 25 >> helo mydomain.com (substitute a valid domain here) >> mail from: <someuser at validdomain.com> >> rcpt to: <youremailaddress at yourdomain.com> >> data >> From: someuser at validdomain.com >> to: youremailaddress at yourdomain.com >> subject: test >> >> This is a test mesage >> . >> >> note: blank line between mail headers and body >> >> end data with line containing only '.'. >> >> Then check your maillog and send the output to the list. >> >> >> Nataraj >> >> postfix status: >> >> postfix/postfix-script: the Postfix mail system is running: PID 5936 >> >> mailq: Mail queue is empty >> >> Did the telnet localhost 25, it answered but not sure I understood you >> what I needed to do. >> >> Thanks!! > Tried following your instructions and got 227 2.7.0 Error: I can break > rules, too. Goodbye. > Connection closed by foreign host. > > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centosIf your grabbing text and stuffing it with the mouse, you need to send only 1 line at a time and wait for a reply for each line, except for the data section where you can send multiple lines.? If you get errors, run script before running telnet and post a log of the session or else tell us which line caused the error. Nataraj
> -----Original Message----- > From: CentOS [mailto:centos-bounces at centos.org] On Behalf Of Nataraj > Sent: Monday, July 23, 2018 9:47 PM > To: centos at centos.org > Subject: Re: [CentOS] Mail has quit working > > On 07/23/2018 06:28 PM, tdukes at palmettoshopper.com wrote: > > > > > > -------- Original Message -------- > > Subject: Re: [CentOS] Mail has quit working > > From: Nataraj <incoming-centos at rjl.com> > > Date: Mon, July 23, 2018 9:01 pm > > To: centos at centos.org > > > > On 07/23/2018 03:39 PM, TE Dukes wrote: > >> Hello, > >> > >> Mail has come to an abrupt stop. Running C7, postfix and dovecot. Using > >> Roundcube as the client. > >> > >> Mail stopped working Saturday and I cannot figure was has happened. I > have > >> not touched this server except to upgrade packages. I believe Roundcube > was > >> updated maybe a week ago but know I was getting mail since then. > >> > >> Crond is no longer send mail. I checked /var/spool/mail as well as /Maildir > >> in home directories. Zero byte files. > >> > >> Checked all logs and the only thing I could find was in /var/log/maillog : > >> warning hostname localhost does not resolve to address 127.0.0.1 > >> > >> I corrected that by changing inet_interfaces to localhost from all in > >> postfix.cf > >> > >> When I try to log in with Roundcube, it just times out. > >> > >> I'm stuck! > >> > >> TIA for any suggestions!! > >> > >> _______________________________________________ > >> CentOS mailing list > >> CentOS at centos.org > >> https://lists.centos.org/mailman/listinfo/centos > > More information would be helpful to troubleshoot this. Try sending > > output from: > > > > postfix status > > > > mailq > > > > Try telnetting to your smtp server and sending a message like this from > > the local system: > > substitute a valid user/domain on the mail from line and a valid email > > address in your domain > > on the rcpt to line. Do this, logged onto the mailserver. > > > > telnet localhost 25 > > helo mydomain.com (substitute a valid domain here) > > mail from: <someuser at validdomain.com> > > rcpt to: <youremailaddress at yourdomain.com> > > data > > From: someuser at validdomain.com > > to: youremailaddress at yourdomain.com > > subject: test > > > > This is a test mesage > > . > > > > note: blank line between mail headers and body > > > > end data with line containing only '.'. > > > > Then check your maillog and send the output to the list. > > > > > > Nataraj > > > > postfix status: > > > > postfix/postfix-script: the Postfix mail system is running: PID 5936 > > > > mailq: Mail queue is empty > > > > Did the telnet localhost 25, it answered but not sure I understood you > > what I needed to do. > > Simply telnet to mailserver on port 25 and type what I've shown, > substituting valid email addresses and valid addresses in your domain as > indicated. You can use your own domain for the hello command, i.e. "helo > mydomain.com". Everything between the data command and the '.' is input > to the data command. After you type the '.' the message will be sent > and should be delivered to the user on the "rcpt to" line. You should > see logging of successful delivery or errors in the maillog. > > Nataraj > >I can't get past From: <someuser at validdomain.com> I also tried 'from', lower case. Then get 221 2.7.0 Error: I can break rules, too. Goodbye. Connection closed by foreign host. Maybe I took too long? IDK
On 24/07/18 13:46, Nataraj wrote:> Simply telnet to mailserver on port 25 and type what I've shown,This is pointless because he's complaining about cron and system emails which use the sendmail command are submitted through the pickup service, not port 25/smtp (in fact, if you're submitting any mail via port 25 you're doing it wrong but that's another discussion). TE Dukes: Please do the following (lines that start with # should be run as root, lines that start with $ should be run as a local user): Install the mail command which is an easy interface to the sendmail command and thus the pickup service. # yum install mailx # tail -n0 -f /var/log/maillog ...then in another window (replace someuser at example.com with your own email address): $ mail -s 'Test Email' someuser at example.com <<< "This is a test" ... wait a minute for postfix to have a chance to process and send the message, then break out of the tail command and copy/paste the output into your reply. Then also copy and paste the output of the following: $ postconf -nf; postconf -Mf If I need any more info after that I'll let you know. Peter
OK, not sure what happened, my response was rejected by Centos: Reason: There was an error while attempting to deliver your message with [Subject: "RE: [CentOS] Mail has quit working"] to centos at centos.org. MTA p3plwbeout03-06.prod.phx3.secureserver.net received this response from the destination host IP - 208.100.23.70 - 554 , 554 5.7.1 Service unavailable; Client host [72.167.218.218] blocked using ix.dnsbl.manitu.net; Your e-mail service was detected by mail.ixlab.de (NiX Spam) as spamming at Tue, 24 Jul 2018 11:45:20 +0200. Your admin should visit http://www.dnsbl.manitu.net/lookup.php?value=72.167.218.218 .. So, I'm trying a third time: On 24/07/18 13:46, Nataraj wrote:> Simply telnet to mailserver on port 25 and type what I've shown,This is pointless because he's complaining about cron and system emails which use the sendmail command are submitted through the pickup service, not port 25/smtp (in fact, if you're submitting any mail via port 25 you're doing it wrong but that's another discussion). TE Dukes: Please do the following (lines that start with # should be run as root, lines that start with $ should be run as a local user): Install the mail command which is an easy interface to the sendmail command and thus the pickup service. # yum install mailx # tail -n0 -f /var/log/maillog ....then in another window (replace someuser at example.com with your own email address): $ mail -s 'Test Email' someuser at example.com <<< "This is a test" .... wait a minute for postfix to have a chance to process and send the message, then break out of the tail command and copy/paste the output into your reply. Then also copy and paste the output of the following: $ postconf -nf; postconf -Mf If I need any more info after that I'll let you know. Peter _______________________________________________ CentOS mailing list CentOS at centos.org https://lists.centos.org/mailman/listinfo/centos Here's the output from tail: Jul 24 07:00:21 ts130 postfix/pickup[4017]: 338CA811240E: uid=0 from=<root> Jul 24 07:00:21 ts130 postfix/cleanup[7047]: 338CA811240E: message-id=<20180724110021.338CA811240E at ts130.palmettodomains.com> Jul 24 07:00:21 ts130 postfix/qmgr[8283]: 338CA811240E: from=<root at ts130.palmettodomains.com>, size=461, nrcpt=1 (queue active) Jul 24 07:00:22 ts130 postfix/smtpd[7112]: connect from localhost[127.0.0.1] Jul 24 07:00:22 ts130 postfix/smtpd[7112]: 468E581DAB6C: client=localhost[127.0.0.1] Jul 24 07:00:22 ts130 postfix/cleanup[7047]: 468E581DAB6C: message-id=<20180724110021.338CA811240E at ts130.palmettodomains.com> Jul 24 07:00:22 ts130 postfix/qmgr[8283]: 468E581DAB6C: from=<root at ts130.palmettodomains.com>, size=946, nrcpt=1 (queue active) Jul 24 07:00:22 ts130 postfix/smtpd[7112]: disconnect from localhost[127.0.0.1] Jul 24 07:00:22 ts130 amavis[423]: (00423-02) Passed CLEAN {RelayedInbound}, [127.0.0.1] <root at ts130.palmettodomains.com> -> <tdukes at palmettodomains.com>, Message-ID: <20180724110021.338CA811240E at ts130.palmettodomains.com>, mail_id: 8sW4ZXrbEdBD, Hits: 1.766, size: 461, queued_as: 468E581DAB6C, 1094 ms Jul 24 07:00:22 ts130 postfix/smtp[7049]: 338CA811240E: to=<tdukes at palmettodomains.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.1, delays=0.04/0/0/1.1, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 468E581DAB6C) Jul 24 07:00:22 ts130 postfix/qmgr[8283]: 338CA811240E: removed Jul 24 07:00:22 ts130 dovecot: lda(tdukes): msgid=<20180724110021.338CA811240E at ts130.palmettodomains.com>: saved mail to INBOX Jul 24 07:00:22 ts130 postfix/local[7113]: 468E581DAB6C: to=<tdukes at palmettodomains.com>, relay=local, delay=0.11, delays=0.03/0.01/0/0.07, dsn=2.0.0, status=sent (delivered to command: /usr/libexec/dovecot/dovecot-lda -f "$SENDER" -a "$RECIPIENT") Jul 24 07:00:22 ts130 postfix/qmgr[8283]: 468E581DAB6C: removed Jul 24 07:04:04 ts130 postfix/smtpd[7053]: timeout after END-OF-MESSAGE from localhost[127.0.0.1] Jul 24 07:04:04 ts130 postfix/smtpd[7053]: disconnect from localhost[127.0.0.1] Jul 24 07:05:59 ts130 postfix/qmgr[8283]: C33128410546: from=<root at ts130.palmettodomains.com>, size=949, nrcpt=1 (queue active) Here's the output from postconf: smtp inet n - n - - smtpd -o content_filter=spamassassin pickup unix n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr unix n - n 300 1 qmgr tlsmgr unix - - n 1000? 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - n - - smtp relay unix - - n - - smtp showq unix n - n - - showq error unix - - n - - error retry unix - - n - - error discard unix - - n - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil scache unix - - n - 1 scache spamassassin unix - n n - - pipe flags=R user=spamd argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} ${recipient} smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps-o smtpd_restriction_classes= -o smtpd_client_restrictions-o smtpd_helo_restrictions= -o smtpd_sender_restrictions-o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 Thanks