Forum Moderators: bakedjake

Message Too Old, No Replies

Postfix configuration on Ubuntu 20.04

         

peakminute

6:45 pm on Jan 26, 2021 (gmt 0)

5+ Year Member



I have VPS setup on Ubuntu 20.04+LAMP+webmin
The website is working fine, but I can't understand how to configure Postfix to create email address associated with my domain.
Anyone can explain?

lammert

7:31 pm on Jan 26, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Was postfix pre-installed on the server, or did you install it with "apt install postfix"? Also, are you using some kind of control panel like plesk, or will you use the command line interface through SSH?

peakminute

7:56 pm on Jan 26, 2021 (gmt 0)

5+ Year Member



the only control panel is webmin
I can also connect via SSH client- putty
Installed Postfix via webmin panel.
However I can't get it: how on earth to create an email address.

lammert

8:06 pm on Jan 26, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



In the webmin panel, you can go to System->Users and Groups. You can add a new user here. The username will function as the first part of username@example.com, where example.com is your own domain name. There is no need to assign a User ID, a unique ID will be generated for you.

peakminute

8:11 pm on Jan 26, 2021 (gmt 0)

5+ Year Member



ok I will try to create a user now

peakminute

8:18 pm on Jan 26, 2021 (gmt 0)

5+ Year Member



User created
another question: how to access inbox and send test email

lammert

8:25 pm on Jan 26, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You should be able to connect to the email box with an external client like Outlook through a POP or IMAP connection with the server if a mailclient-server like dovecot is installed. That connection will allow the user to read the incoming emails. Postfix won't allow outgoing mail from unauthenticated sources by default. This is to prevent your server from becoming a spam hub. You will have to authenticate the mail client with the postfix SMTP server on your VPS before outgoing email is accepted.

peakminute

8:44 pm on Jan 26, 2021 (gmt 0)

5+ Year Member



installed dovecot, will try to connect via mail client

peakminute

8:59 pm on Jan 26, 2021 (gmt 0)

5+ Year Member



can't connect via thunderbird
BTW do I need to change my hostname? Because now it looks like this "06374.serverprovider.net" ?

lammert

10:13 am on Jan 27, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The best way to troubleshoot connection problems is to view messages in the /var/log/mail.log and /var/log/mail.err files.

The domain name used in emails is set in the main.cf file in the /etc/postfix directory with the settings myhostname and mydomain. This name can be different from the hostname. You can configure a single postfix installation to accept emails for multiple domains by adding additional domain names to the virtual_alias_domains setting.

peakminute

12:08 pm on Jan 27, 2021 (gmt 0)

5+ Year Member



thanks for help