LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Finger with sendmail (https://www.linuxquestions.org/questions/linux-software-2/finger-with-sendmail-107669/)

andynxn 10-23-2003 01:38 PM

Finger with sendmail
 
hi all,

I have sendmail running on my linux box, everything is working fine except
when the server is off line I lose mail im supposed to collect. Now I know
this mail is stored on the remote mail server and I need to issue the
'finger' command, anyone know how I set sendmail to automatically send this
command when my server is up and running again?

Cheers
Andy

stickman 10-23-2003 02:21 PM

Why do you need to issue a finger command? I've never heard of using finger to transfer email. When your Linux is offline, are you losing the email or just not collecting it. I'm curious to know what is telling the remote server to delete the email when your system is not online.

schwing 10-23-2003 03:13 PM

Well, you should have a secondary MX spooling your messages in case your primary goes offline. I think that's what you mean when you said "Now I know this mail is stored on the remote mail server". If so, your mail is not lost, it's just stored until your box comes back online. Usually a secondary will try to deliver any messages it has spooled at regular intervals. You can "force" the mail server to try to deliver by issuing the ETRN command. Something like this should work and should be easy enough to script:

$ telnet secondarymx.mydomain.com 25
ehlo mydomain.com
etrn mydomain.com
quit

HTH.


All times are GMT -5. The time now is 04:08 PM.