![]() Sudo cp master.cf master.cf.BAK Mailbox Setup This way, you’ll have something to compare to if you’re ever trying to work out which bits were defaults and which bits you changed yourself: Sudo service postfix restart Testing and Configurationīefore you start, it’s probably worth backing up the configuration files in their current state. Restart postfix and you shouldn’t see the warnings any more: This is important because your server will use this to talk to other mail servers, and some will reject your emails if you don’t use a fully qualified domain name to say hi! This is covered in more detail in the helo access restrictions later. Find the line that begins myhostname = and make sure it is your fully qualified domain name. The setup script takes the hostname of the server and uses that, but it may not be in the right format, i.e. Now is also a good time to check that your hostname is specified properly in /etc/postfix/main.cf. sudo nano main.cf) and add inet_protocols = ipv4 to the end of the file. Change directory into the postfix configuration folder:Įdit /etc/postfix/main.cf with your favourite command line text editor (e.g. ![]() Unless you fix the warning, you’ll see it every time. Not many ISPs support IPv6 yet, so you probably don’t need it. IPv6 is a new type of IP address that was introduced because we’re running out of the “old” IPv4 addresses. Postmulti: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol ![]() You may also get some warnings like this: WARNING: /etc/aliases exists, but does not have a root alias. etc/aliases does not exist, creating it. Setting destinations: .uk, samhobbs, localhost.localdomain, localhost Not creating home directory `/var/spool/postfix'.Īdding tcp map entry to /etc/postfix/dynamicmaps.cfĪdding sqlite map entry to /etc/postfix/dynamicmaps.cf Īdding new user `postfix' (UID XXX) with group `postfix'. 67653 files and directories currently installed.) Selecting previously unselected package postfix. The output will look something like this: The setup script will then do some automatic configuration for you. Select “Internet Site” and then set the mail name to your domain name, not including .uk). First, log into your Pi with a SSH session and install postfix: If you don’t have any port forwarding rules now, that’s great, don’t worry – I’ll prompt you to set them up later. ![]() Note: While you are setting up the mail server on the Pi, it’s a good idea to turn off port forwarding rules for email to the Pi in your router’s firewall. Raspberry Pi Email Server Part 5: Spam Sorting with LMTP & Sieve Installing Postfix Raspberry Pi Email Server Part 4: Spam Detection with Spamassassin Raspberry Pi Email Server Part 3: Squirrelmail Raspberry Pi Email Server Part 2: Dovecot Raspberry Pi Email Server Part 1: Postfix The Introduction & Contents Page (read first) This tutorial covers Postfix, the Mail Transfer Agent. This is the first part of a five part tutorial that will show you how to install a full featured email server on your Raspberry Pi. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |