Web Hosting Talk







View Full Version : Qmail issue


loryans
10-09-2001, 10:40 AM
Howdy,

I'd like to send an email to all domains on my mail server.
I am currently running Qmail 1.03, vpopmail & Courier-IMAP.
I just want the one email to go to all domains - preferrably the catchall account, or does it have to go to all users?

Any help is appreciated.

Thanks,

Lozzmo

cperciva
10-09-2001, 10:46 AM
You can send the email to whatever list of addresses you like... can you clarify exactly what you want to do?

loryans
10-09-2001, 10:48 AM
I would like to send a newsletter to all of our hosting clients.

Most of them are clueless so they wouldn't be checking their postmaster accounts (which is the default admin acct).
I'm thinking the best way would be to send it to info@ all domains, because all domains have a CatchAll account specified.

I just don't know how to send the actual email!

cperciva
10-09-2001, 11:08 AM
You can generate a list of email addresses by grabbing the list of domains from /var/qmail/control/rcpthosts and /var/qmail/control/morercpthosts. Prepend "info@" to each of those domains (by hand, or with a perl script) and you have your list of targets.

After that,
set QMAILMFTFILE="addresslist"
/var/qmail/bin/qmail-inject < message