Here it is.
#
https://bitbucket.org/tildeslash/monit/issue/112/smtp-error#comment-14395650
#if failed host localhost port 25 type tcp protocol smtp retry 2
times then restart
if failed host localhost port 25 type tcp protocol smtp for 2
cycles then restart
Full config:
https://github.com/szepeviktor/debian-server-tools/blob/master/monitoring/monit/services/courier-mta#L5-L7
Once I was even starting a shell script when Monit told me that
Courier is not responding on 127.0.0.1:25
That included tcpdump, netstat etc. Revealed *nothing*
I appreciate your help and advise.
Idézem/Quoting Lindsay Haisley <[email protected]>:
> On Wed, 2016-12-28 at 20:02 +0100, SZÉPE Viktor wrote:
>> Good evening!
>>
>> I am investigating a strange monitoring phenomenon.
>> localhost (lo interface) is monitored on port 25 with a program
>> called Monit.
>> Monit generates a very small SMTP communication.
>> Usually it is OK.
>>
>> When the Internet-facing interface (eth0) is down - for some reason
>> but not DHCP - the test fails.
>>
>> Of course couriertcpd binds on 127.0.0.1 only as "ADDRESS=127.0.0.1"
>>
>> Could it be that Courier unbinds from localhost when eth0 is down?
>> Thanks.
>
> I also use Monit, although not to monitor the status of lo. I would
> look, for the source of this phenomenon, to the configuration stanza in
> /etc/monit/monitrc (or one of the config subfolders of /etc/monit).
>
> --
> Lindsay Haisley | "UNIX is user-friendly, it just
> FMP Computer Services | chooses its friends."
> 512-259-1190 | -- Andreas Bogk
> http://www.fmp.com |
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> courier-users mailing list
> [email protected]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
SZÉPE Viktor
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
--
+36-20-4242498 [email protected] skype: szepe.viktor
Budapest, III. kerület
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users