performance of mail


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting performance of mail
# 1  
Old 05-29-2005
performance of mail

hi all

Does anyone have any ideas on how to improve the performance of mail in AIX ?
When I send a mail, I see a process as below active for a while before actually receiving the mail.

root 311462 1 0 16:02:04 pts/1 0:00 send-mail -i -x abc@xyz.com

Thanks
# 2  
Old 05-31-2005
Hmm, it is still faster than the post office.

About the only thing I can think of is to set up a cache-only DNS server on the mail server (if it isn't set up as a DNS primary or secondary server already). This will allow it to cache DNS information to allow quicker lookups and take maybe another 2-3 seconds off the time to send. You have to remember that it matters on what you are sending (size of email) and where you are sending (they may be getting quite a few mail messages already).
# 3  
Old 05-31-2005
Thanks for the response RTM.
The problem I have is as follows :-
I have a script (A) on host1 that calls a script (B) on host2.
The script (B) on host2 is the one that does the mail. What I see, is if I run script (B) on host2 it goes quick, however when host1 does a rsh on host2 to run script (B) it sits on the mail statement for a while.
# 4  
Old 05-31-2005
Well, that's a completely different problem then you were stating before.

Post the actual command from script B for mail command - change any info such as user/system names to fake ones if needed (keeping the command looking the same so syntax can be checked).
# 5  
Old 06-05-2005
the script on host2 has the following statement in it

LINE=`echo ${HL}${BL}$LINE${RL}`
echo "$MLINE" | mail -s "$HOST - $TEXT" name@domain.com
# 6  
Old 06-05-2005
I forgot to place
MLINE="${DT} | ${HOST} | $ESCRIPT-$MSGID | $TEXT"
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 Dummies Questions & Answers

Minimal Mail Server Setup for Local Mail Transfer

I am trying to get stored mail out of an old mail client. I figured that the easiest way to do it is with IMAP by logging in with both clients. I can copy the mail to the server from the old mail client, and back down into the new mail client. Rather than using a real mail account on the... (2 Replies)
Discussion started by: nixie
2 Replies

3. OS X (Apple)

Why are the subjects of deleted mail messages still in Mail Viewing pane?

I was wondering -- when I delete a mail message, I know it goes into the trash, but I've noticed that the subject lines of messages are still in the viewing pane, and I have to delete them as well. Can anyone tell me why this is, and where they are? (1 Reply)
Discussion started by: Straitsfan
1 Replies

4. 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

5. 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

6. Programming

send mail performance problem in AIX

Hi All, Our application is designed to send the emails. we use standard C lib to send the mails using send() function. This works fine on Solaris,HP UX and windows, but on AIX the performance is very slow. it takes around 32 sec to send a simple mail whereas in Solaris 2-3 sec. I would like to... (2 Replies)
Discussion started by: shrihari_s
2 Replies

7. 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

8. News, Links, Events and Announcements

Announcing collectl - new performance linux performance monitor

About 4 years ago I wrote this tool inspired by Rob Urban's collect tool for DEC's Tru64 Unix. What makes this tool as different as collect was in its day is its ability to run at a low overhead and collect tons of stuff. I've expanded the general concept and even include data not available in... (0 Replies)
Discussion started by: MarkSeger
0 Replies

9. 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
Login or Register to Ask a Question