LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-05-2007, 08:03 AM   #1
JailBreak
LQ Newbie
 
Registered: Dec 2006
Posts: 8

Rep: Reputation: 0
Sendmail configuration


Hi

I have my Linux working with Oracle. And i need to use sendmail to work with oracle.

This part is already working, but i have a problem sending emails to outside domains.

I always get javax.mail.SendFailedException: 550 5.7.1 ... Relaying denied

The java is from the Oracle APPS. IF the email is send to local domain no problem, but is to outside i get this.

I now that the relay is working fine. But the sendmail is been blocked and cant find where.

Since i cannot send(external) emails from the linux i use my Exchange has a relay. I have tested this and is working.

If i send an email from console example:

sendmail -v user@external_domain.com

If i send this from the user Oracle i get the email.
But i send this from the user root i never receive the email.

And looking in the /var/spool/mqueue i cant see any log file with error, or with a queue.

Any one can give some hints on this?

PS: Update... i think the problem is that sendmail and this Oracle Mail Server, thus not allow Oracle APPS to send emails in behalf of this email server. I do not now if this the problem, but... maybe.

Thank You

JailBreak

Last edited by JailBreak; 09-05-2007 at 08:15 AM.
 
Old 09-05-2007, 08:27 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You need to have your sendmail.cf contain a DS line for smart relay
e.g.
DSexchangeserver

Where you substitute your exchange server's real name for exchangeserver above.

Stop/start sendmail after making the change.

Verify doing mail at command line relays successfully to be sure it is an Oracle issue.

e.g.

cat /etc/hosts |mail -s "This is a test" someuser@somedomain

/var/log/maillog should show you if it relays successfully or not (or even attempts to do so).

P.S. Whoever manages the Exchange Server will need to configure it to allow you to do relaying. Here we have it set up so that all of our UNIX and Linux VLAN IPs are allowed to relay through Exchange.

P.P.S. The above deals with how Oracle Workflow Manager mails out - there is a separate config using IMAP from within Oracle to get mail IN - I'm strictly a *nix admin so can't really give you much details of this other config except to say it is made directly within Oracle to the Exchange server rather than via sendmail.
 
Old 09-05-2007, 08:48 AM   #3
JailBreak
LQ Newbie
 
Registered: Dec 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Hi jlightner

Thank you for the reply

I have already the DSexchangeserver in my sendmail.cf

About the maillog, i have check this before, any email that i send the log says:

Message accepted for delivery
mailer=relay, pri=30745, relay=exchangeserver.com. [exchangeserver IP], dsn=2.0.0, stat=Sent (OK)

I think here is ok

Regarding the Exchange Relay. That is working, and the Exchange is relaying to my Oracle. The Exchange administrator has done this already. Is working since i can send emails from the Linux sendmail to outside from the user Oracle.

Regarding not using sendmail, that is not possible. The Oracle Product is Oracle Email Center, and must use sendmail.

From the Oracle i can send email and receive, from Oracle APPS in the local accounts, but to outside no.

That is the reason that i say that the sendmail that is in the Oracle Email Server, do not relay on the Oracle Email Center(APPS) that is another server, and this is the server that send/receive emails from oracle.

Again, thank you

JailBreak
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail configuration Uday123 Red Hat 2 01-18-2006 10:57 AM
Sendmail configuration MichaelING AIX 0 07-02-2004 04:23 AM
Sendmail Configuration ralphf Linux - Newbie 1 06-09-2004 12:47 PM
Sendmail configuration lapthorn Linux - Newbie 2 12-09-2003 08:13 PM
Sendmail Configuration svsalian Linux - Software 7 08-29-2003 04:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration