The problem I was facing with sending mails using my smtp server was , that it did not accept mails which did not have an @"company.com" in its mailing address. Had to work a way around it in the submit.cf file.
Although am sure there are much more easier ways to do this, this is the best I could come up with :-)
cd /etc/mail/
there should be a submit.mc file . Please note that it is not suggested to edit the submit.cf/ sendmail.cf files directly , and instead use the .mc files for editing. The below settings had to be appaended into submit.mc file
MASQUERADE_AS(company-name.com')dnl
FEATURE(masquerade_envelope)dnl
MASQUERADE_DOMAIN(`localhost')dnl
MASQUERADE_DOMAIN(`localhost.localdomain')dnl
dnl
FEATURE(`msp', smtp-mail-server')dnl
After adding the changes. You will need to execute the command m4 submit.mc >submit.cf.
Please note that in order to use a machine as a client, you need not have the sendmail daemon running.
My googled working solutions for those teeny weeny irritating problems I face in my day to day life.Occasional reviews of free software tools
Thursday, November 26, 2009
Adding a New alias to Majordomo mailing lists
Recently, had to create a new mailing list in Majordomo. We had a directory where all the mail lists were kept. let us suppose the dir is /usr/local/majorodomo/lists
a. Create a file with the name being the mailing list id eg: build-notifications
write the names of the members into the "build-notifications" file as below
person1@company.com
person2@company.com
person3@company.com
.... and so on
b. create an empty build-notifications.info in the same directory.
c. search for the majordomo.aliases file in the parent directory and edit the file to add the below entries
#build-notifications mailing list. Managed by xyz@company-name.com.
build-notifications: "|/usr/local/majordomo/wrapper resend -l build-notifications build-notifications-outgoing"
build-notifications-outgoing: :include:/usr/local/majordomo/lists/build-notifications
build-notifications-request: "|/usr/local/majordomo/wrapper majordomo -l build-notifications"
owner-build-notifications: xyz@company-name.com
build-notifications-owner: owner-build-notifications
build-notifications-approval: owner-build-notifications
d. after this I had to run the newaliases command
a. Create a file with the name being the mailing list id eg: build-notifications
write the names of the members into the "build-notifications" file as below
person1@company.com
person2@company.com
person3@company.com
.... and so on
b. create an empty build-notifications.info in the same directory.
c. search for the majordomo.aliases file in the parent directory and edit the file to add the below entries
#build-notifications mailing list. Managed by xyz@company-name.com.
build-notifications: "|/usr/local/majordomo/wrapper resend -l build-notifications build-notifications-outgoing"
build-notifications-outgoing: :include:/usr/local/majordomo/lists/build-notifications
build-notifications-request: "|/usr/local/majordomo/wrapper majordomo -l build-notifications"
owner-build-notifications: xyz@company-name.com
build-notifications-owner: owner-build-notifications
build-notifications-approval: owner-build-notifications
d. after this I had to run the newaliases command
Subscribe to:
Posts (Atom)