Routing e-mail help


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Routing e-mail help
# 1  
Old 11-30-2001
Question Routing e-mail help

Hi,

How would I route all out going e-mails from a UNIX server to another e-mail server (an Exchange server) so that the e-mail is actually sent out of the network using the Exchange server instead of the UNIX server?

Sorry, I know I'm being very general with this question.

Thanks!

Last edited by Fairlady-Z; 11-30-2001 at 01:34 PM..
# 2  
Old 11-30-2001
You might need to see your network admins to get an MX record set up for your exchange server for your domain (if it's the main mail server for your domain).

If you're using local files on your system for hostnames, you could make an entry in /etc/hosts and give it an alias calling it mailhost.
# 3  
Old 11-30-2001
Thanks for your reply!

Basically, here is my situation.

We already have an registered MX record for our Exchange server. No problems exist sending and receiving mails with the Exchange server.

Recently, we had to implement a UNIX server with support to our SAP application. When transactions are made with the SAP application, it sends out an e-mail confirmation to the client. This is all well and fine, except that some of our client's mail servers are rejecting e-mails coming from this UNIX server because it does not have a registered MX record on the internet. The solution that I've come up with is to route all the mails sending out from the UNIX server to our working Exchange server so that our client's mail server would accept the mails.

Here's a solution that I've found. But will this mask just the text level or the MX record level? If it's the MX record level, then I guess my problem is solved. Can someone confirm if this will solve my problem?

Thanks,

"Using the m4 macros, use:

MASQUERADE_AS(my.dom.ain)

This will cause all addresses to be sent out as being from the
indicated domain.

On your mailhub/mailhost/Domain Mail eXchanger, you may need to
add "my.dom.ain" to the sendmail.cw file or the "Cwhost.my.dom.ain"
line in the sendmail.cf file.

If you're using version 8.7 sendmail, and you want to hide this
information in the envelope as well as the headers, use:

FEATURE(masquerade_envelope)"
# 4  
Old 11-30-2001
I have never seen an MTA reject a message because the sending MTA did not have an MX record. MX records are generally used for sending mail, not receiving. Also, if a MX record is not used, the sending host will attempt the A record.

You may have a different problem. What is the output of trying to send mail from the UNIX box to a 'rejecting host' with the sendmail -v comand line to send a test message?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

2. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

3. UNIX for Dummies Questions & Answers

How to send html file in a mail not as an attachment but it should display in the mail in table for

Hi The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment . cat Employee.sql SET VERIFY OFF SET PAGESIZE 200 SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies

4. UNIX for Dummies Questions & Answers

Solaris mail routing to Windows SMTP server (trailing dot)

Hello, Firstly, appologies, i am a windows man but i'm picking things up really quickly.! We have some Unix boxes on our estate that route mail to a Windows SMTP server. This doesn't seem to work and after looking at the message headers it looks like the mail is getting bounced. :( -----... (4 Replies)
Discussion started by: M2TTJ
4 Replies

5. Solaris

how to forward mail in /var/mail/username to external mail

Dear All, Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do? thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies

6. Linux

Routing

Hello Friends I have two network cards eth0 192.168.100.1 eth1 10.0.0.1 There NIC connect with diff. LAN I want to make my Linux machine as a Router, Please tell me using IPTABLES command ROUTE command :) (2 Replies)
Discussion started by: jaibw
2 Replies

7. UNIX for Dummies Questions & Answers

mail problem (NOT Mail or Mail.app)

When I try to use the CLI mail, I get the following error. What's wrong? Welcome to Darwin! % mail root Subject: test test . EOT % /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory Do I just need to change the... (1 Reply)
Discussion started by: chenly
1 Replies

8. IP Networking

Routing

ok i configured my gateway and IP address(es) using ifconfig and route.. but how can i bind unique IPs to users ? (im using FreeBSD 4.2 RELEASE #3) (9 Replies)
Discussion started by: DevilGREEN
9 Replies

9. IP Networking

Routing

I have SCO Unix. I have 2 routers. as it is now, when someone telnets to UNIX and goes through router #1 everything is fine. The users who go through router #2 can not connect at all. I talked to CISCO and they said I need to set up a second Gateway on UNIX. They said what is happening is that... (1 Reply)
Discussion started by: john fli
1 Replies
Login or Register to Ask a Question