• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

setting up abuse and postmaster addresses on all domains?

michaellunsford

Regular Pleskian
I'd like to setup an abuse and postmaster address for all domains. All the different addresses should forward to the system administrator.

I can't find it in group operations. Is there another way to do this quickly, or will I have to manually add the addresses to each domain?
 
Hello,

You can do it with a script using :

/usr/local/psa/bin/mail.sh

You could do like this:

echo "select name from domains;" | mysql -u admin -p`cat /etc/psa/.psa.shadow ` psa > dom

remove the first line of the file

cat dom | awk '{print "/usr/local/psa/bin/mail.sh --create postmaster@"$1" OPTIONS_HERE";}' > script

sh script

OPTIONS_HERE can be found out at:

/usr/local/psa/bin/mail.sh --help

This is one solution , I am sure that there more elegant ones.
 
There's an easier and better solution for this.

Just put a .qmail-postmaster in each domain's folder, under the qmail root; containing the email address of the administrator.

Like this:

echo "mail@domain.tld" > .qmail-postmaster
for key in `ls /var/qmail/mailnames/ | xargs`;do cp .qmail-postmaster /var/qmail/mailnames/$key/.qmail-postmaster;chown popuser:popuser /var/qmail/mailnames/$key/.qmail-postmaster;done


That way you have a postmaster alias for every domain, _AND_ the domain admin can't modify that alias.

I'm no qmail expert, but that seems to work for me.
 
Back
Top