/go/contact builds a list of contacts from the mail that customers have received. For each mailbox of a domain it reads the messages, takes the sender's name and address, and saves them in the contact database together with the recipient's address. I haven't seen which part of GoAdmio reads contact.db, so this page doesn't say what the contacts are used for. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# One domain
/go/contact example.com
# Every domain with a mail folder
/go/contact all
Examples
# Collect the contacts of one domain
/go/contact example.com
# Collect for every domain
/go/contact all
# Look at what was saved
sqlite3 /var/lib/sqlite/contact.db "SELECT Name, EmailFrom, EmailTo FROM Contact WHERE Domain='example.com' LIMIT 20"
Output
| Outcome | What you get |
|---|---|
all |
<domain> Contacts... for each domain, then exit code 1. |
| One domain | Nothing. |
Logging
Every run is appended to /var/log/go/contact.log.
Marker files
For every message it looks at, the command creates a small file named after the MD5 hash of the message’s file name, /usr/local/goadmio/db/<hash>.db. These files mark messages as processed. They sit in the same folder as GoAdmio’s own database files, and there is one for every message ever processed.
See the full reference at /go/contact and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
