Sign in or 

|
kamranirshad |
sendmail not working on server with Linux 5.2
Jan 2 2009, 11:09 PM EST
Hi,we have a database server with Oracle Linux 5.2 installed. We are testing sendmail on this server. We are executing this from command prompt --> mail -s "Test Email" <e-mail id> </tmp/test.log the command is not giving us any error but we never receive any e-mail. We tried this 3 - 4 time but still the same. Can someone please help us on how to troubleshoot this? We verified that sendmail process is running [root@db1 oracle]# service sendmail status sendmail (pid 8230 8183) is running... [ [root@db1 oracle]# ps -ef |grep sendmail |grep -v grep root 8183 1 0 2008 ? 00:00:00 sendmail: accepting connections smmsp 8230 1 0 2008 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue $ mail -s "test e-mail" id@domain.com </home/oracle/a.sql $ [oracle@db1 mail]$ pwd /var/mail [oracle@db1 mail]$ ls -ltr -rw-rw---- 1 oracle mail 0 Dec 12 11:02 oracle Thanks Do you find this valuable?
Keyword tags:
None
|
|
JimHalfpenny |
1. RE: sendmail not working on server with Linux 5.2
Jan 16 2009, 11:03 AM EST
Hi,You should see some log messages in /var/log/syslog or /var/log/maillog which may shed some light on this. It should tell you whether the message was accepted and what it tried to do with it. Regards, Jim Do you find this valuable? |
|
san01 |
2. RE: sendmail not working on server with Linux 5.2
Jan 20 2009, 7:08 AM EST
Hi,Will you be able to use uuencode instead. Rgds. San01 Do you find this valuable? |
|
ezra.taylor |
3. RE: sendmail not working on server with Linux 5.2
May 22 2009, 2:41 PM EDT
You have to specify a smart host in mail.cf. Below is an excerpt I got from sendmail howto. Also, as you know this is not an Oracle issue.sendmail provides a simple method of configuring a smart host using the SMART_HOST feature; when implementing it in the Virtual Brewery configuration, we do exactly this. The relevant portions of our configuration that define the smart host are: define(`SMART_HOST', `uucp-new:moria') LOCAL_NET_CONFIG # This rule ensures that all local mail is delivered using the # smtp transport, everything else will go via the smart host. R$* < @ $* .$m. > $* $#smtp $@ $2.$m. $: $1 < @ $2.$m. > $3 The SMART_HOST macro allows you to specify the host that should relay all outgoing mail that you are unable to deliver directly, and the mail transport protocol to use to talk to it. In our configuration we are using the uucp-new transport to UUCP host moria. If we wanted to configure sendmail to use an SMTP-based Smart Host, we would instead use something like: define(`SMART_HOST', `mail.isp.net') We don't need to specify SMTP as the transport, as it is the default. Can you guess what the LOCAL_NET_CONFIG macro and the rewrite rule might be doing? The LOCAL_NET_CONFIG macro allows you to add raw sendmail rewrite rules to your configuration that define what mail should stay within the local mail system. In our example, we've used a rule that matches any email address where the host belongs to our domain (.$m.) and rewrite it so that it is sent directly to the SMTP mailer. This ensures that any message for a host on our local domain is directed immediately to the SMTP mailer and forwarded to that host, rather than falling through to our smart host, which is the default treatment. Do you find this valuable? |