From: Christian S. <me...@cs...> - 2015-04-16 17:12:56
|
Hi folks, I have multiple user entries in one fetchmail configuration file. The entries look like the following: ``` poll “source.example.com" proto IMAP port 143 user “de...@so... <mailto:de...@so...>" password "demo1" smtphost localhost smtpname us...@my... <mailto:de...@my...> keep idle ``` I want my users to be individually notified via e-mail if fetchmail cannot connect to the host that is polled. Example: If fetchmail cannot connect / log in to source.example.com <http://source.example.com/> with the given credentials, I want a notification going straight to us...@my... <mailto:us...@my...>. (I guarantee this mail address exists). From what I can tell, the `set bouncemail` and `set postmaster <postmaster mail address>` option seem to be good starting points, but neither configuration option seems to have any effect. The OS is a Debian Jessie. If you have any suggestion how to solve the problem, I would be happy to hear from you. Thanks, Christian |
From: Matthias A. <mat...@gm...> - 2015-04-16 18:13:03
|
Am 16.04.2015 um 18:46 schrieb Christian Schwarz: > Hi folks, > > I have multiple user entries in one fetchmail configuration file. The entries look like the following: > > ``` > poll “source.example.com" > proto IMAP > port 143 > user “de...@so... <mailto:de...@so...>" > password "demo1" > smtphost localhost smtpname us...@my... <mailto:de...@my...> > keep > idle > ``` > > I want my users to be individually notified via e-mail if fetchmail cannot connect to the host that is polled. > Example: If fetchmail cannot connect / log in to source.example.com <http://source.example.com/> with the given credentials, I want a notification going straight to us...@my... <mailto:us...@my...>. (I guarantee this mail address exists). > > From what I can tell, the `set bouncemail` and `set postmaster <postmaster mail address>` option seem to be good starting points, but neither configuration option seems to have any effect. > > The OS is a Debian Jessie. > > If you have any suggestion how to solve the problem, I would be happy to hear from you. Such code does not exist. Fetchmail sends warnings about connection timeouts, oversized messages, and authentication failures, and that's it. |
From: Mick C. <mic...@gm...> - 2015-04-16 18:13:24
|
I'm pretty sure that you can pass a message to procmail for this . -- Key ID: 0x4BFEBB31 > On 16 Apr 2015, at 17:46, Christian Schwarz <me...@cs...> wrote: > > Hi folks, > > I have multiple user entries in one fetchmail configuration file. The entries look like the following: > > ``` > poll “source.example.com" > proto IMAP > port 143 > user “de...@so... <mailto:de...@so...>" > password "demo1" > smtphost localhost smtpname us...@my... <mailto:de...@my...> > keep > idle > ``` > > I want my users to be individually notified via e-mail if fetchmail cannot connect to the host that is polled. > Example: If fetchmail cannot connect / log in to source.example.com <http://source.example.com/> with the given credentials, I want a notification going straight to us...@my... <mailto:us...@my...>. (I guarantee this mail address exists). > > From what I can tell, the `set bouncemail` and `set postmaster <postmaster mail address>` option seem to be good starting points, but neither configuration option seems to have any effect. > > The OS is a Debian Jessie. > > If you have any suggestion how to solve the problem, I would be happy to hear from you. > > Thanks, > > Christian > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > _______________________________________________ > Fetchmail-users mailing list > Fet...@li... > https://lists.sourceforge.net/lists/listinfo/fetchmail-users |
From: Matthias A. <mat...@gm...> - 2015-04-16 21:49:02
|
Am 16.04.2015 um 20:13 schrieb Mick Crane: > I'm pretty sure that you can pass a message to procmail for this . You cannot - fetchmail does not trigger anything on a failed connection. The only thing you could do is to parse logs. Log synchronization is the next challenge then. Probably easier to write some C code, and if anyone feels inclined to, only do so against the Git "master" branch so it can become part of 7.0.0 and has some rate limiting, too. No new features for the legacy* branches. |