User Tools

Site Tools


mail_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
mail_server [2023/01/06 11:30] – [SPAM Problems from 27.12.2022] kalaschnikowmail_server [2023/01/06 11:30] (current) – kalaschnikow
Line 1: Line 1:
 +====== Mail Server ======
 +
 +===== Add new virtual domain (on relay.avril.work -> 94.199.215.198) =====
 +
 +The mail server installation on relay.avril.work is administrated by the web application "Postfixadmin": https://postfixadmin.avril.work/public
 +
 +  * Adding domains
 +  * Adding mailboxes
 +  * etc.
 +
 +To add new mail account to Gmail:
 +  * use POP3 and port 995 (SSL!)
 +    * because Gmail don't use IMAP to fetch mails from other accounts
 +===== Add new virtual domain (on 188.138.122.184, which will be shut down in October 2022) =====
 +
 +<code bash>
 +# open mysql
 +# see mysql-domains.cf for password
 +mysql -u vmail -p
 +</code>
 +
 +<code sql>
 +-- use vmail database
 +USE vmail;
 +
 +-- with id autoincrement
 +INSERT INTO domains (domain) VALUES ('glomus-gps.de');
 +
 +-- with id autoincrement
 +INSERT INTO users (username,domain,password) VALUES ('v.kalaschnikow','glomus-gps.de', '$6$orY5QQ4i47mK3l29$TjBBxdeRa1cTtmwQib0lowgzAUrCbWlpu9Xae7nVReGS4ICt0EEk6wkskgvodmLuTBvTgFL603v82g8a2crS2/');
 +
 +-- with id autoincrement
 +INSERT INTO aliases (source,destination) VALUES ('info@glomus-gps.de','v.kalaschnikow@glomus-gps.de');
 +
 +</code>
 +
 +Then exit from mysql and reload the new configuration:
 +
 +<code bash>
 +exit
 +
 +# after that don't forget to call postmap 
 +postmap /etc/postfix/virtual/mysql-domains.cf
 +postmap /etc/postfix/virtual/mysql-aliases.cf
 +postmap /etc/postfix/virtual/mysql-maps.cf
 +
 +# reload postfix configuration
 +postfix reload
 +
 +# and restart postfix
 +service postfix restart
 +
 +</code>
 +
 +
 +===== Thunderbird configuration for wialon-consulting.de =====
 +
 +==== SMTP configuration (using Gmail server) ====
 +
 +
 +smtp.googlemail.com
 +
 +Port: 465
 +
 +Verbindungssicherheit: SSL / TLS
 +
 +Authentifizierungsmethode: OAuth2
 +
 +Benutzername: v.kalaschnikow@gmail.com
 +
 +===== Gmail configuration for wialon-consulting.de =====
 +
 +User: v.kalaschnikow@wialon-consulting.de (with "@wialon-consulting.de", not "v.kalaschnikow" only!)
 +
 +Port: 995
 +
 +
 +===== SPAM Problems from 27.12.2022 =====
 +
 +[[SPAM Problems from 27.12.2022]]
 +
 +