WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.



Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Change the DNS Name in Header

 Keywords:  Postie kSendText kSendFile Change DNS Name IPAddress IP Address Host Header HOSTS.SAM


I am using Postie to send SMTP mail. The header of a message sent this way includes the DNS name and IP address of the host I run the script on. Is there a way to change the DNS name that is included in the header? I did see this in the Postie Help...

The Postie extender really wants a DNS served IP address. However many people have found that by simply putting an entry for that IP address in your HOSTS file, you can circumvent the need for a DNS lookup. Note however that the HOSTS file is often updated by other mail programs. To make changes to this file, look for a HOSTS.SAM file in your Windows directory and examine it. It usually has some comments that tell you how to set it up. You may have to reboot to make it effective.


Yes try adding an entry in the Hosts file for the IP of the local computer and then the DNS name you wanted it to stamp in the mail header. How Do I Change My Hosts File? Steps for forcing your local machine to send email prior to the DNS changes propagating. Please keep in mind that the normal wait time for propagation of nameservers is 48 hours. localhost
Add the second line in this example to your hosts file. You may also need to reboot for the change to take effect.

User Reply:

That did the trick.
Article ID:   W17587
Filename:   Change the DNS Name in Header.txt
File Created: 2017:07:28:13:58:34
Last Updated: 2014:02:21:10:29:05