Operating System - Linux
1833162 Members
3174 Online
110051 Solutions
New Discussion

Re: postfix configuration issues...specifically masquerading (lack of )

 
Manuel Contreras
Regular Advisor

postfix configuration issues...specifically masquerading (lack of )

Mail sent to our intranet arrives correctly (me@domain.com).

Anything going outside does not, so my tests get rejected (me@hostname.com) :(


any assistance am I missing something?
thanks,
manny

main.cf entries:
smtp_generic_maps = hash:/etc/postfix/generic
masquerade_domains = $mydomain


contents of generic file:
me@hostname.com me@domain.com
7 REPLIES 7
Ivan Ferreira
Honored Contributor

Re: postfix configuration issues...specifically masquerading (lack of )

I don't need to configure smtp_generic_maps or masquerade_domains parameter. Normally:

mydomain = domain.com
myorigin = $mydomain

Should be enough.

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Manuel Contreras
Regular Advisor

Re: postfix configuration issues...specifically masquerading (lack of )

changed myorigin to $mydomain, now I don't need to worry about the generic file/smtp_generic_maps entry...thanks

still having problems w/outgoing internet mail...not being masqueraded.
Manuel Contreras
Regular Advisor

Re: postfix configuration issues...specifically masquerading (lack of )

when I add "-v" to my mail command, I receive a Mail Delivery Status Report

This report indicates a connection timed out error when testing to my cellphone acct. and gmail.


: connect to gsmtp183.google.com[64.233.183.27]: Connection timed out


mail just sits captive in my queue directory...until I manually remove it.
Manuel Contreras
Regular Advisor

Re: postfix configuration issues...specifically masquerading (lack of )

after further research, it appears that "connection timed out error" is not necessarily a email-server issue.

I performed a telnet "gsmtp183.google.com 25" which timed out.

Called the Network Guys and requested that they allow smtp traffic from my box...please :)

it's a conspiracy :p will test once they open the port.

manny
Manuel Contreras
Regular Advisor

Re: postfix configuration issues...specifically masquerading (lack of )

We gots a postfix mail server :D

Had to take the network guys out for lunch, before they allowed outbound smtp traffic from my box...

thanks,
manny
Ivan Ferreira
Honored Contributor

Re: postfix configuration issues...specifically masquerading (lack of )

I'm glad is working. When problem arrives, always remember:

Check the maillog file.

Ensure DNS resolution is working:
dig domain.com MX

Ensure you can connect to the SMTP server:
telnet smtp_server.domain.com 25

Ensure that is listening in port 25:
netstat -an |grep :25

Get familiarized with postalias, postsuper and postqueue commands.

Have a nice day.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Manuel Contreras
Regular Advisor

Re: postfix configuration issues...specifically masquerading (lack of )

performing a telnet test pointed me in the right direction...