10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have two issues with my script one of which i would like to discuss here.
Its my compulsion to use sendmail.
My sample script
#!/bin/bash
{
print 'From: Prod@`hostname`.mycomp.com'
print 'To: me@mycomp.com'
print 'MIME-Version: 1.0'
print... (2 Replies)
Discussion started by: mohtashims
2 Replies
2. UNIX for Dummies Questions & Answers
I am running a mailx command as follows in Linux:
mailx -s "Elapsed Time: " ora_dbas < $RUNDIR/sql_timings.out
I am trying to parse the file "sla_local_sql_timings.out" for the word Elapsed Time: and get the time from that file stored in a variable and display that variable in the subject... (4 Replies)
Discussion started by: vrkcamry
4 Replies
3. Shell Programming and Scripting
Hi Team,
I coded my code to send mail to some reciepents with subject and date.
Can somebody suggest me how to add host name to subject ? and the below code is correct for date ?
my aim is to send mail with "subject in < hostname> on <date>".When i execute this script on my server its hung... (3 Replies)
Discussion started by: rocking77
3 Replies
4. UNIX for Dummies Questions & Answers
I'm using Debian 5.0.4, exim4 and mutt.
I would like all outgoing mail sent by any/all users CC (not BCC) to a specified e-mail account.
(I do have it working for BCC using 'unseen'.)
I have spent hours of searching/reading/testing how and have not been able to find out how.
I have seen it... (0 Replies)
Discussion started by: mewbie
0 Replies
5. Solaris
Hello,
ENVIRONMENT:
OS: Solaris 10
Sendmail: 8.13.8+Sun
BACKGROUND:
We had a user account that was compromised and was used as a relay. She sent out (or would have if we didn't kill sendmail) ~10K emails alerting people they just won $75K.
The target for this spam was everyone internal... (1 Reply)
Discussion started by: avikb
1 Replies
6. UNIX and Linux Applications
Does anyone know what's Sendmail outgoing email rate? e.g. 1000 outgoing email per minutes. If so, can we modify it?
Thanks.
:) (1 Reply)
Discussion started by: sunmagic2003
1 Replies
7. UNIX for Advanced & Expert Users
Hi
Am fetching a weekly report pf data..once i fetched the data i need a sent report by mail.
In the subject of that mail i want to sent a message like..
SUBJECT :The report had been fetched from (01/12/08 to 07/12/08).
I need to send a report like this every week with that particular... (2 Replies)
Discussion started by: bobprabhu
2 Replies
8. UNIX for Dummies Questions & Answers
I have a Solaris 2.6 server running sendmail (Version 8.9.3p2). It actually receives email and runs the sendmail process. I need to configure it so that it continues to receive email, but disable its ability to send email out. My initial ideas was to just rename the mail and mailx binaries. But... (0 Replies)
Discussion started by: Rosko
0 Replies
9. UNIX for Dummies Questions & Answers
G'day,
I've a solaris 9 box that I want to configure so that users can send out mails to internet. How can I do it? Can someone pls list me the steps or direct me to a detailed website.
Thanks in advance. (1 Reply)
Discussion started by: Albert J.
1 Replies
10. UNIX for Dummies Questions & Answers
Hi.
I need to set up sendmail so that it can send mail to a mail relay.
I have never touched sendmail before so I am not sure how to do this. All incoming mail is directed to a different server - this is just to enable me to get mail out.
Running Solaris 8 on Sparc.
Many thanks,
... (6 Replies)
Discussion started by: warrend
6 Replies
etrn(1M) System Administration Commands etrn(1M)
NAME
etrn - start mail queue run
SYNOPSIS
etrn [-b] [-v] server-host [client-hosts]
DESCRIPTION
SMTP's ETRN command allows an SMTP client and server to interact, giving the server an opportunity to start the processing of its queues
for messages to go to a given host. This is meant to be used in start-up conditions, as well as for mail nodes that have transient connec-
tions to their service providers.
The etrn utility initiates an SMTP session with the host server-host and sends one or more ETRN commands as follows: If no client-hosts are
specified, etrn looks up every host name for which sendmail(1M) accepts email and, for each name, sends an ETRN command with that name as
the argument. If any client-hosts are specified, etrn uses each of these as arguments for successive ETRN commands.
OPTIONS
The following options are supported:
-b System boot special case. Make sure localhost is accepting SMTP connections before initiating the SMTP session with server-host.
This option is useful because it prevents race conditions between sendmail(1M) accepting connections and server-host attempting to
deliver queued mail. This check is performed automatically if no client-hosts are specified.
-v The normal mode of operation for etrn is to do all of its work silently. The -v option makes it verbose, which causes etrn to display
its conversations with the remote SMTP server.
ENVIRONMENT VARIABLES
No environment variables are used. However, at system start-up, svc:/network/smtp:sendmail reads /etc/default/sendmail. In this file, if
the variable ETRN_HOSTS is set, svc:/network/smtp:sendmail parses this variable and invokes etrn appropriately. ETRN_HOSTS should be of the
form:
"s1:c1.1,c1.2 s2:c2.1 s3:c3.1,c3.2,c3.3"
That is, white-space separated groups of server:client where client can be one or more comma-separated names. The :client part is optional.
server is the name of the server to prod; a mail queue run is requested for each client name. This is comparable to running:
/usr/lib/sendmail -qR client
on the host server.
EXAMPLES
Example 1 Using etrn
Inserting the line:
ETRN_HOSTS="s1.domain.com:clnt.domain.com s2.domain.com:clnt.domain.com"
in /etc/default/sendmail results in svc:/network/smtp:sendmail invoking etrn such that ETRN commands are sent to both s1.domain.com and
s2.domain.com, with both having clnt.domain.com as the ETRN argument.
The line:
ETRN_HOSTS="server.domain.com:client1.domain.com,client2.domain.com"
results in two ETRN commands being sent to server.domain.com, one with the argument client1.domain.com, the other with the argument
client2.domain.com.
The line:
ETRN_HOSTS="server1.domain.com server2.domain.com"
results in set of a ETRN commands being sent to both server1.domain.com and server2.domain.com; each set contains one ETRN command for each
host name for which sendmail(1M) accepts email, with that host name as the argument.
FILES
/etc/mail/sendmail.cf sendmail configuration file
/etc/default/sendmail Variables used by svc:/network/smtp:sendmail
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsndmu |
+-----------------------------+-----------------------------+
|Interface Stability |Stable |
+-----------------------------+-----------------------------+
SEE ALSO
sendmail(1M), attributes(5)
RFC 1985
NOTES
Not all SMTP servers support ETRN.
SunOS 5.11 10 Aug 2004 etrn(1M)