Sponsored Content
Special Forums UNIX and Linux Applications Sendmail external email delays and mailertables problems on Solaris Post 302794673 by LittleLebowski on Tuesday 16th of April 2013 01:43:27 PM
Old 04-16-2013
Sendmail external email delays and mailertables problems on Solaris

Setup is a Solaris 11 zone running sendmail as a relay to our actual mailservers. All emails to external domains seem to be being tried to be sent directly from this Solaris 11 zone which cannot send mail externally.

All emails sent to our pager addresses as defined in the /etc/mail/aliases file (blackberry.net and att.net) are on a 6 minute delay.

Mailertables should fix this by specifying which smtp server to use for specified domains so I created that file, pointing our 2 pager domains to our organizational mailservers. I tried to enable mailertables via the below methods and it just didn't work. Is there known good way to enable mailertables on Solaris? Any ideas on how to fix these delays?


- create /etc/mail/mailertable with att.net and blackberr.net entries (pager domains to date).
Run makemap hash /etc/mail/mailertable < /etc/mail/mailertable


Building the new sendmail.cf

1. Edit /etc/sendmail/cf/cf/sendmail.mc and add line
FEATURE(access_db, `hash -o -T /etc/mail/access’) FEATURE(mailertable, `hash -o /etc/mail/mailertable’)

NOTE: some online notes state that the "hash" option may not work on Solaris but others do. Will try with
above syntax first.

2. Compile sendmail. m4 /etc/mail/cf/cf/sendmail.mc > /etc/mail/sendmail.cf.

3. sdiff new sendmail.cf with timestamped one from today and edit accordingly.

4. Restart Sendmail, tail log, run svcs -xv sendmail, check for errors.

5. Send test emails to internal and external (pager) domains.

---------- Post updated at 01:43 PM ---------- Previous update was at 12:26 PM ----------

Also tried smart hosts to no avail. I would appreciate advice on that approach as well.
 

10 More Discussions You Might Find Interesting

1. Programming

Problems calling external C routines from PL/SQL

Hi everybody! I'm not familiar with C programming in Unix, but I'm trying to make work an example to execute external procedures (developed in C) from PL/SQL. The example includes .c and .pc source files, which I have compiled succesfully. After that, links the .o files into .so to declare... (0 Replies)
Discussion started by: lwnorowski
0 Replies

2. UNIX for Dummies Questions & Answers

Sending cronjob log to external email

Hi All, I would like to know if there away to send cronjob log to external email (such as nazri76@domain.com) instead of to /var/spool/mail/root . If so, can we attach a file in the mail (e.g. test.log) ? Need guidance from you guys! (1 Reply)
Discussion started by: nazri76
1 Replies

3. Filesystems, Disks and Memory

external USB detection problems

I have seagate USB 2.0 HDD which was working good on my windows system Recently I have started using red hat Linux 2.6.9-55.0.12.EL (i686 i686 i386 GNU/Linux) The USB is not at all detected in Linux even if I reboot with it attached to the PC. The same can be detected on any Windows system.... (2 Replies)
Discussion started by: mahendrakamath
2 Replies

4. UNIX for Dummies Questions & Answers

Sendmail problems

Hi, I have some problems w/ the sendmail. I see that messages are queued in the /var/spool/mqueue and they are never sent to the recipients. This problem just suddenly started without any modifications in the current configuration. I already started and stop the sendmail and it did not help.... (1 Reply)
Discussion started by: ktanya
1 Replies

5. Web Development

Tricky mod_rewrite for clean urls problems when fetching external sources

Hi, I have problems with mod rewrite. I will try to describe... I want clean urls but fail to make it work propperly. Maybe I have problems, because the content displayed is fetched from my other site... There is a lot of stuff I already red about this, but somehow I can not find a solution... (2 Replies)
Discussion started by: lowmaster
2 Replies

6. UNIX for Dummies Questions & Answers

Sendmail problems

Hello, This is my first post, so hello! I'm trying to gather a copy all the mail that goes through my sendmail into a named pipees so I can gather statistics and what not. I believe a copy of all mail is stored in var/spool/mail? I tried to replace the mail directory with a named pipe... (5 Replies)
Discussion started by: dadoprso
5 Replies

7. UNIX for Dummies Questions & Answers

Can't configure sendmail to send mails to external SMTP Server

Hi all,I know, that this is very common issue, but I can't find where is the problem... I have Solaris 10 installed.I want to send mail to external SMTP server, like:echo "letter body"| mailx -s "subject" test@test.comBut I donno what kind of changes I have to do in /etc/hosts and sendmail.cf or... (5 Replies)
Discussion started by: nypreH
5 Replies

8. OS X (Apple)

mailx to external email address

Hi, How can I use "mailx" command to send message to an email address like this? echo "This email body" | mailx -s "my subject" "email@hostname.com" There may be some setup required in sendmail or postfix?? OS = Snow Leopard 10.6 (4 Replies)
Discussion started by: FlyingSquirrel
4 Replies

9. HP-UX

Sendmail problems

I running sendmail as user smmsp I have create user,group with same name Sendmail start ok,but when i try to send email outside of localhost give me this error Jan 3 20:46:59 hpux2 sm-mta: t03JkwJb020892: t03JkxJb020893: DSN: Insufficient permissionI give those permissions chmod 2755 ... (1 Reply)
Discussion started by: Linusolaradm1
1 Replies

10. Solaris

Solaris - Sendmail - Adding .com.gr in external senders e-mails

Hello Everybody ! I'm Harry from Athens Greece and i have a problem with my Sendmail 8.13.3 installed on Solaris SunOS ultra 5.10. The problem is that when someone sends to us an e-mail and his e-mail address is like : xxxx@xxxx.com, our e-mail server adds up in the senders address a .com.gr... (2 Replies)
Discussion started by: Mcasim
2 Replies
Log::Handler::Output::Sendmail(3pm)			User Contributed Perl Documentation		       Log::Handler::Output::Sendmail(3pm)

NAME
Log::Handler::Output::Sendmail - Log messages with sendmail. SYNOPSIS
use Log::Handler::Output::Sendmail; my $email = Log::Handler::Output::Sendmail->new( from => 'bar@foo.example', to => 'foo@bar.example', subject => 'your subject', ); $email->log(message => $message); DESCRIPTION
With this output module it's possible to log messages via "sendmail". METHODS
new() Call "new()" to create a new Log::Handler::Output::Sendmail object. The following options are possible: from The sender address (From). to The receipient address (To). cc Carbon Copy (Cc). bcc Blind Carbon Copy (Bcc) subject The subject of the mail. sender This option is identical with "sendmail -f". header With this options it's possible to set your own header. my $email = Log::Handler::Output::Sendmail->new( from => 'bar@foo.example', to => 'foo@bar.example', header => 'Content-Type: text/plain; charset= UTF-8', ); Or my $email = Log::Handler::Output::Sendmail->new( header => { From => 'bar@foo.example', To => 'foo@bar.example', Subject => 'my subject', 'Content-Type' => text/plain; charset= UTF-8', } ); Or my $email = Log::Handler::Output::Sendmail->new( header => [ 'From: bar@foo.example', 'To: foo@bar.example', 'Subject: my subject', 'Content-Type: text/plain; charset= UTF-8', ] ); sendmail The default is set to "/usr/sbin/sendmail". params Parameters for "sendmail". The default is set to "-t". maxsize Set the maximum size of the buffer in bytes. All messages will be buffered and if "maxsize" is exceeded the buffer is flushed and the messages will be send as email. The default is set to 1048576 bytes. Set 0 if you want no buffering and send a mail for each log message. debug Set 1 if you want to enable debugging. The messages can be fetched with $SIG{__WARN__}. log() Call "log()" if you want to log a message as email. $email->log(message => "this message will be mailed"); If you pass the level then its placed into the subject: $email->log(message => "foo", level => "INFO"); $email->log(message => "bar", level => "ERROR"); $email->log(message => "baz", level => "DEBUG"); The lowest level is used: Subject: ERROR ... You can pass the level with "Log::Handler" by setting message_pattern => '%L' flush() Call "flush()" if you want to flush the buffered messages. validate() Validate a configuration. reload() Reload with a new configuration. errstr() This function returns the last error message. DESTROY
"DESTROY" is defined and called "flush()". PREREQUISITES
Carp Params::Validate EXPORTS
No exports. REPORT BUGS
Please report all bugs to <jschulz.cpan(at)bloonix.de>. If you send me a mail then add Log::Handler into the subject. AUTHOR
Jonny Schulz <jschulz.cpan(at)bloonix.de>. COPYRIGHT
Copyright (C) 2007-2009 by Jonny Schulz. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-11-21 Log::Handler::Output::Sendmail(3pm)
All times are GMT -4. The time now is 01:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy