Page 1 of 1
Qmail Mail Groups
Posted: Tue May 31, 2011 4:39 pm
by KrazyBob
Mail groups are handled in Plesk at Domains > xyz.com > Mail >
user@xyz.com > Mail Group.
Using Qmail where are these email addresses recorded? In MySQL? A text file somewhere? Is there a maximum number of recipients? I'd like to add/ecit/delete from a script.
Thanks.
Re: Qmail Mail Groups
Posted: Tue May 31, 2011 6:22 pm
by breun
They are in /var/qmail/mailnames/xyz.com/user/.qmail, but I guess they are generated by Plesk from data in the psa database. I wouldn't edit those files directly, but use Plesk's command line tools. Look up the Plesk CLI docs for your Plesk version.
I think I recall there's a limit of 100 addresses per mail group, but I'm not sure. You could switch to full-fledged mailman mailinglists instead of mail groups if there's indeed a limit on mail groups.
Re: Qmail Mail Groups
Posted: Tue May 31, 2011 7:18 pm
by KrazyBob
Thanks for the reply. I already have a database driven mailer application that I wrote. The emails are for fire personnel and are time-sensitive. I'd rather send via SMS but I don't know exactly how other than a GSM modem. But then I need to know the cell phone providers special gateways and all that. I can learn it if I knew where to find resources. There are thousands of addresses and mail comes to a crawl when an alert is sent. Most providers don't like Bcc's or Cc's with more than X recipient's and none will tell you the value of X or the velocity of the send.
Re: Qmail Mail Groups
Posted: Wed Jun 01, 2011 4:22 am
by KrazyBob
I pulled out the CLI reference and the command does not work:
Code: Select all
[root@server1 ~]# /bin/mail -u user@domain.com -groupmem add:anotheruser@yahoo.com
/bin/mail: invalid option -- g
Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...
[- sendmail-options ...]
mail [-iInNv] -f [name]
mail [-iInNv] [-u user]
I CAN manually add the forwarded address to /var/qmail/mailnames/domain.com/user/.qmail but it doesn't appear in Plesk. Mail is received at the address however. I cannot find anything that states a limit on the maximum number of forwards allowed.
Re: Qmail Mail Groups
Posted: Wed Jun 01, 2011 6:09 am
by paulie
Thats the linux mail command (for sending a mail via the command line), you're going to want /usr/local/psa/bin/mail or mailmng or some such (not near a machine with Plesk on it).
Going back to the SMS thing, the clickatell API is really easy, alternatively (and I doubt it helps) there are email -> SMS gateways, and finally why not send the mails individually (no batches of CC's etc) and increase your concurrency of delivery to large amounts?
Though I suspect the issue you're having is with the mail servers the other end being awkward (sorry, making legitimate attempts to prevent spam).
Re: Qmail Mail Groups
Posted: Wed Jun 01, 2011 6:29 am
by KrazyBob
Thanks for the reply. I followed the instructions at
http://download1.swsoft.com/Plesk/Plesk ... /39394.htm
Code: Select all
./mail -u user@domain.com -groupmem add:anotheruser@yahoo.com
It did not specify changing directories but I did try mailmng. I didn't see mail in /usr/local/psa/bin/ but I see it now
As a fire fighter I get SMS alerts because Sprint set me up on their "special" gateway. SMS messages are much faster and not hindered by all of the spam filtering crap. I need instant notification! I'll check clickatell but $$$ is an issue. We can alrady send to SMS using the email format but again, slow.
You are absolutely correct that my mail server sits and waits 30 seconds for the recipient server to answer or otherwise. We send two messages at a time of 5,000+ using either SMTP_AUTH, which doesn't like to run on Plesk (Qmail issue) or other tricks that let us avoid the PHP mail command. I am thinking that if there isn't a limit on forwarding this might be viable. Might...
Code: Select all
[root@server1 ~]# /usr/local/psa/bin/mail -u user@domain.com -groupmem add:anotheruser@yahoo.com
SUCCESS: Update of mailname 'user@comain.com' complete
It helps running the correct command.
Thank you for your help.