Hello,
we need some mailinglists for our domain and we would like to import the recipients with a script from a text file.
In our first tests we used the mailinglists of MailMan. But the administration of MailMan is actually much too complex for us.
In fact, single mailboxes with integrated forwarding would be good enough for us. Can I fill the forwarding list via script here as well?
So far we have solved this in MailMan with this script:
Thank you
we need some mailinglists for our domain and we would like to import the recipients with a script from a text file.
In our first tests we used the mailinglists of MailMan. But the administration of MailMan is actually much too complex for us.
In fact, single mailboxes with integrated forwarding would be good enough for us. Can I fill the forwarding list via script here as well?
So far we have solved this in MailMan with this script:
Code:
for address in `cat /var/www/vhosts/domain.com/httpdocs/list_webteam_add.txt` ; do
domain=$(echo $address | sed 's/^\(.*\)@\(.*\)$/\2/')
/usr/local/psa/bin/maillist --update webteam -members add:$address -domain domain.com
Thank you