Email server behind pfSense
-
marcelloc,
I have done that what you have said. And as podilarius said I have 2 different IP both internally and externally for the respective servers.
I am going to test now whether the above mentioned configuration is working or not. -
nahid-
I assume you have set up a VIP for each of your public IP address you intend to use…??
-
chpalmer,
What I have to do? I have to create Virtual IP for my Email Server or Aliases is ok?
Could you please explain.
-
marcelloc,
_"
nahid,Did you changed you pfsense gui port as well disabled webConfigurator redirect rule on system-> advanced?"_
I haven't changed it? Do I have to change it? or it ok?
-
I haven't changed it? Do I have to change it? or it ok?
yes, config these steps to avoid problems on port 80 nat.
-
I haven't changed it? Do I have to change it? or it ok?
yes, config these steps to avoid problems on port 80 nat.
Marcello- he needs a VIP for that external IP doesn't he??
-
Marcello- he needs a VIP for that external IP doesn't he??
The aliases on screen shots suggest that vip/ip alias are configured.
-
Marcello,
I am still not sure that what I have to use. Virtual IP or Aliases for my External Mail server forwarding or both of them are ok?
-
With one firewall, use IP alias. Firewall -> virtual ip-> IP alias
-
Marcello,
When I configure OutBound NAT InternalMailServer with the Virtual IP (IP Aliases) IntrnalMailServer (10.10.1.5) could not able to access Internet. Actually it should access through the Internet with its external ip I mean with the virtual ip that configured for it.
How can I solve this?
-
Thanks to everybody, the problem has solved through creating the virtual ip as IP Aliases and then NAT them as 1:1 with internal mail server.
Now I want to use Postfix Forwarder with MailScanner.
Marcello, could you please help me to configuring these packages? If possible please give me some screen shots of settings.
Thanks in advance.
-
Thanks to everybody, the problem has solved through creating the virtual ip as IP Aliases and then NAT them as 1:1 with internal mail server.
Now I want to use Postfix Forwarder with MailScanner.
Marcello, could you please help me to configuring these packages? If possible please give me some screen shots of settings.
Thanks in advance.
Follow this thread to see if posted messages could help you on configuring mailscanner.
I'll post there a small shortcut for a default mailscanner setup.http://forum.pfsense.org/index.php/topic,43687.msg226301.html#msg226301
-
Dear Marcello,
I have installed both postfix and MailScanner. I configured MailScanner as default just providing my domain address in general tab.
Now the problem is how can I configure Postfix forwarder with MailScanner. I came through a post by you where you mentioned that port 25 NAT should be removed and all traffic should be sent to Wan Address. In my case my WAN Address is not my Email Server IP. So what will be the solution here.
Could you please explain a little bit for me.
Thanks a lot.
-
Nahid, That is going to be the case for most mail servers. The idea is that your pfSense machine becomes a proxy hence why you use your firewall address for your MX records.
-
Now the problem is how can I configure Postfix forwarder with MailScanner. I came through a post by you where you mentioned that port 25 NAT should be removed and all traffic should be sent to Wan Address. In my case my WAN Address is not my Email Server IP. So what will be the solution here.
If the ip address is one of virtual ips assigned to your pfsense, listen postfix on localhost and forward virtual ip port 25 to 127.0.0.1 instead of internal server.
The postfix needs to be between internet and your internal server to fiter email, just like podilarius posted.
att,
Marcello Coutinho -
Another question,
Under Serach email tab in Postfix forwarder Sqlite files are empty. Is my configuration is wrong or I have made something error.
-
One more question how can choose localhost as the interface in Postfix? Appending a line in main config file or some thing else.
The second task that I am going to perform is that I will make a port forward on 25 from my external mail server ip to localhost. But question is my internal mail server ip is 10.10.1.5 and how will I connect this with external mail server. I mean how will the email traffic will receive and send between them?
-
Or is it the thing that my local mail server ip is the localhost in postfix forward? Is that so then in domain tab which server ip I am going to provide: local or external email server ip.
Please consider me as a beginner thats why I am asking so many questions.
-
Another question,
Under Serach email tab in Postfix forwarder Sqlite files are empty. Is my configuration is wrong or I have made something error.
set log Destination to /var/log/maillog and Update Sqlite to every minute on general tab.
-
Marcelo,
Please look at the screen shots of my Postfix Forwarder. I have done what you say about the sqlite but still it is empty.