Categories
Exchange Linux Windows

How to configure your Linux Postfix server to forward email to Exchange Server 2013

In every environment you may have different devices and appliances that may need to send email or notifications. This guide will go thru the process on how to configure your Linux server with Postfix Mail Transfer Agent. Thru the guide I will use Ubuntu as the Linux distribution for the demo.

1. Make sure to configure Exchange to accept email for relay. Check this post for how to configure Exchange 2013 to relay your mail for appliances.

2. Install all the required packages. ex. sudo apt-get install mailutils

3. During the installation it will ask to configure the basic settings for Postfix. Select Satellite system.  This mean your linux system is not managing email it is just sending it out.

pf1

4. Type your domain fqdn in the next screen. Ex. domain.com

pf2

 

5. Type the IP address of your Exchange 2013 server hosting the receive connector. Ex. 111.222.333.123

pf3

 

6. After the installation finishes. You need to reconfigure Postfix. To reconfigure Postfix execute the following command:  sudo dpk-reconfigure postfix

7. Press OK.

pf4

 

8 . Click Satellite system –> TAB –> OK

pf5

 

9. validate the domain is correct. Press OK.

pf6

 

10. Check that you have the correct IP Address for the Exchange Server.

pf7

 

11.Type the email address for the administrator

pf8

 

12. Erase all the destinations. This will force all the email to go out and not accept any email.

pf9

 

13. In the Force Synchronous updates on mail queue,  select Yes

pf10

 

14. Because we are only sending email out, tab to OK.

pf11

 

15. Leave the mailbox size on 0.

pf12

 

16. Leave the local address extension + and tab to OK.

pf13

 

17. Tab to ipv4 and then select OK.

pf14

 

18. After it finishes reconfiguring. You can try your new setup. ex. echo “Hi” | mail -s “Testing”  emailaddress@domain.com

pf15

 

19. You should see your email coming into Exchange. By default is comes with the servername as the domain.

pf17

 

20. To change the From address in your linux server follow this example:  echo “Hi” | mail -s “testing” -a “From”:linuxserver@domain.com”  user@domain.com

pf18

 

21. Now your email will arrive with the correct domain name.

pf19

 

Subscribe For Latest Updates

Sign up for best of digital marketing, livestream and technology opinions on what matters to you.

Invalid email address
We promise not to spam you. You can unsubscribe at any time.

5 replies on “How to configure your Linux Postfix server to forward email to Exchange Server 2013”

thank you for this steps and i wanna ask Can i use Postfix and Exchange 2013 in the same domain . i mean that i want to use mail.com on Postfix and mail.com on Exchange 2013 too where some users will be hosted on Postfix and Dovecot and so on and some users on Exchange 2013, can i do this

thank you for this steps and i wanna ask Can i use Postfix and Exchange 2013 in the same domain . i mean that i want to use mail.com on Postfix and mail.com on Exchange 2013 too where some users will be hosted on Postfix and Dovecot and so on and some users on Exchange 2013, can i do this

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.