Clients Sending Emails Part 2

Print Friendly, PDF & Email

Over Spring Break, I tried to look into the Clients Sending Emails problem again. I wrote a script that would ssh into a client and then set all the right things and restart the sendmail service. I tested this script out on a machine, robin and then when the script was done I was still ssh’d into robin. So I didn’t like that or want to do that. I looked up what we wanted to do to ssh out of a machine in a script, but the Google didn’t have much information on that. So I changed the script around so that you could ssh into a client, run the script and then disconnect, like the all-hosts script did.

One of my mistakes in doing this was the first time I tested the new script, I ran it on tempest. And that created some infinite looping of sanderso@tempest.wellesley.tempest.wellesley… and that was bad. I had the undo file that I created so I reverted the sendmail.cf back to that version, but I didn’t restart the sendmail service, like I had done for the edited version. Whoops! Sorry. It’s fixed now.

/usr/network/scripts/client-sendmail.sh. The following have sendmail services that are recognized, so I’ll do them first.

thrush–already relays mail

cardinal–doesn’t already relay. I ran the script, and now it does.

irwin–didn’t already relay. Ran the script. It still doesn’t work.

wren–didn’t already relay. Ran the script. It works now.

warbler–already relays mail.

lark– didn’t already relay. Ran the script. Still doesn’t work.

finch–didn’t already relay. Ran the script. Works now.

For a later time: jay, tamarin, iguana, gecko, herring

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *