LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Send email to internet from 2nd SuSE via internal postfix server (https://www.linuxquestions.org/questions/linux-networking-3/send-email-to-internet-from-2nd-suse-via-internal-postfix-server-512847/)

joadoor 12-22-2006 07:11 AM

Send email to internet from 2nd SuSE via internal postfix server
 
Hi all,

I have (what I think) is an unusual situation regarding postfix.

I currently have a SuSE installation acting as both a firewall and a gateway for emails (using postfix).
This is currently working fine for our internal Exchange environment allowing all users to send emails to each other and to the internet. Call this machine mailgate.

Now, I have another SuSE installation acting as a monitoring server running VMware. Call this machine brslnx02. However I want to also use it to monitor the CPU Temp sensors and send an email to the internet when over a certain temp. I have written the bash script, but am getting stuck at getting it to send an email to the internet.

The emails are getting stuck in the 'mailq':

9798524E3A 767 Fri Dec 22 12:23:39 root@brslnx02.domain.local
(connect to smtp-in.orange.net[193.252.23.4]: Connection timed out)
0123456789@orange.net

90CA324E3E 774 Fri Dec 22 12:33:03 root@brslnx02.domain.local
(connect to mailgate.domain.com[12.34.56.78]: Connection timed out)
admin@domain.com

I have looked on the mail logs for mailgate.domain.com but its not even mentioned in the logs.

Anybody any ideas?
I think there is something that I need to put into either brslnx02 or mailgate's postfix config, but am reluctant to 'break' the working email.

If there is any more info that is needed, please ask away.
TIA.

mpapet 12-23-2006 05:03 PM

postfix
 
Is postfix the smtp server in your environment?

Is the localuser (localuser@domainname) you are trying to use to send the mail authorized to do so?

Does the recipient of the email exist?/routable?

Dumb questions, but get the simple stuff out of the way first.

joadoor 12-25-2006 10:40 AM

Thanks mpapet for the reply,

In asnwer:

Q: Is postfix the smtp server in your environment?
A: We have an Exchange server that holds everyones mailboxes, but this passes emails to the mailgate.domain.local linux box for transport to the outside world via postfix. External emails coming in, pass through postfix before being transfered to the Exchange box.

Q: Is the localuser (localuser@domainname) you are trying to use to send the mail authorized to do so?
A: Don't know. The two sepatate linux boxes are not 'joined' in any way other than being on the same LAN IP range. This is possibly the problem then.

Does the recipient of the email exist?/routable? Yes, I can send from my desktop Outlook program > Exchange Server > Postfix/Mailgate > ISP > Internet etc.etc.
I can't get a different Linux box to send an email to (or through) the mailgate/postifx box.

Hope these answers help (a little)

Cheers,
Andy

BTW, not sad on Xmas day, just fixing my Dad's anti-virus whilst waiting for turkey to go down :)


All times are GMT -5. The time now is 04:58 AM.