Question : Configure postfix to relay email from not my domain?

Hello,

I am trying to configure up a Postfix server in what I believe is a special way.
I've rerouted the DNS of the smtp.example1.com to my own internal SMTP server.
This is because I have 2 connections and when I am on example1, it will not allow sending mail to example2. When I am on connection 2, it will not allow sending mail to example1.

I have an idea on how I can do this; I am 90% of the time on the connection to example1, so that is the primary relay host for my internal Postfix server. I have set up a fallback relay host, which is example2 for when my connection is on example2.

What I am unable todo properly is actually accepting the email from the mail clients trying to send it to example1 / example2 and relaying them for the clients. I know the clients are talking to my internal server, but it will not accept their connections, even tho I've allowed always from same subnet.
I also need it to accept whatever the client sends as authentification, because some clients are set to authentificate with their SMTP outgoing connection and others dont.


Any suggestions on how I might accomplish this?

Btw, my system is CentOS 5.3, freshly installed with Virtualmin for managing my own domains(in addition to relaying the mail from example1 and example2 which are not my domains)

Answer : Configure postfix to relay email from not my domain?

if you use pam for you smtpauth, then you can permit any auth by changing from using system-auth or whatever you use to telling pam to just permit all.. eg:
[root@example /etc/pam.d]# cat smtp.authany
#%PAM-1.0
auth    required   pam_permit.so
account sufficient pam_permit.so
[root@example /etc/pam.d]# cat smtp.postfix
#%PAM-1.0
auth       include      system-auth
account    include      system-auth


Random Solutions  
 
programming4us programming4us