• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Creating an email address without the web interface

M

MigCH

Guest
Hello everyone,

We have a DV server on mediatemple and for PCI compliance reasons, we made changes that made the web interface not usable. That was alright for a lot of things but creating an email seems to be quite tricky. Here is what I've done so far:

- Created the directories and files needed for the mail account (qmail):
-/var/qmail/mailnames/domain.com/accounts
-/var/qmail/mailnames/domain.com/accounts/Maildir
-/var/qmail/mailnames/domain.com/accounts/Maildir/cur
-/var/qmail/mailnames/domain.com/accounts/Maildir/new
-/var/qmail/mailnames/domain.com/accounts/Maildir/tmp
-/var/qmail/mailnames/domain.com/accounts/.qmail
- Set the permissions and the.qmail content based on what is used on other working accounts.
- Edited /var/qmail/users/assign to add a line for the new account
- Ran this command : /var/qmail/bin/qmail-newu
- Created an entry in the 'mail' table of the psa database for the new mail account as well as an entry in the 'accounts' table and the 'Permissions' table (all linked by IDs)
- Also replicated entries of the 'mn_param' table (based on other working accounts)
- Removed the mail name entry in the 'mail_aliases' table because it was an alias before.
- Ran : kill -HUP <qmail-send process ID>

For the moment, nothing happens when one send an email to the address (no mailer-daemon). It basically send it to the void silently. Or that is what I guess because the Maildir seems empty. And I cannot connect to it via POP (I've not tried IMAP).

Does anybody immediately spot a missing step in what I've done?

Thank you very much in advance.
Mig
 
Back
Top