Difference between revisions of "DNS and email setup"

From Dreamwidth Notes
Jump to: navigation, search
(big hosts file pitfall)
(organizing the page)
 
Line 1: Line 1:
 
You will only need this if you are running your own instance.  
 
You will only need this if you are running your own instance.  
 +
 +
=DNS=
 +
If you have to manage your own DNS, Azz recommends [https://www.zytrax.com/books/dns/ DNS for Rocket Scientists] as it will probably put you head and shoulders above the average level 1 tech support at your registrar.
 +
 +
You will need to create "A Records" pointing your domain to your servers, and "MX Records" for the server that hosts your mail.
 +
 +
Most likely you will have to create your MX and A records through your registrar, but in the event you are editing your own hosts file, always remember to increment the serial number. If you do not increment the serial number on the file, no other server will be able to see the change.
 +
 +
=This article is a stub =
  
 
This is what Jimmy did to get reply by email working:  
 
This is what Jimmy did to get reply by email working:  
Line 6: Line 15:
  
 
Created 2 MX records for post and replies, and 2 A records.  
 
Created 2 MX records for post and replies, and 2 A records.  
 
Most likely you will have to create your MX and A records through your registrar, but in the event you are editing your own hosts file, always remember to increment the serial number. If you do not increment the serial number on the file, no other server will be able to see the change.
 
  
 
Added a virtual_alias_map into the Postfix conf, and added:
 
Added a virtual_alias_map into the Postfix conf, and added:

Latest revision as of 01:04, 30 January 2024

You will only need this if you are running your own instance.

DNS

If you have to manage your own DNS, Azz recommends DNS for Rocket Scientists as it will probably put you head and shoulders above the average level 1 tech support at your registrar.

You will need to create "A Records" pointing your domain to your servers, and "MX Records" for the server that hosts your mail.

Most likely you will have to create your MX and A records through your registrar, but in the event you are editing your own hosts file, always remember to increment the serial number. If you do not increment the serial number on the file, no other server will be able to see the change.

This article is a stub

This is what Jimmy did to get reply by email working:

The worker file had to be updated and then he also had to do this:

Created 2 MX records for post and replies, and 2 A records.

Added a virtual_alias_map into the Postfix conf, and added: @post.example.com dw @replies.example.com dw

to that. Added /home/dw/.forward with: | /home/dw/dw/bin/incoming-mail-inject.pl

in it. Adjusted /home/dw/dw/bin/incoming-mail-inject.pl: BEGIN {

   $ENV{LJHOME} ||= "/home/dw/dw";
   require "$ENV{LJHOME}/cgi-bin/ljlib.pl";

}