Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Configuring Sendmail as a client only, how? Post 302971489 by jgt on Wednesday 20th of April 2016 08:08:14 PM
Old 04-20-2016
Why not simply create your own version of mail.
Code:
user=$1
echo $user|grep @ >/dev/null
if [ $? -ne 0 ]
then
    domain=ourdomain.com
    /usr/bin/mail $user@$domain
else
     /usr/bin/mail $user
fi

Put your version of mail ahead of the system version in your PATH.
 

10 More Discussions You Might Find Interesting

1. Linux

configuring same /bash for 4 computer which is thin client

i m doing project on LAN TELEPHONY in Red Hat linux i have files as datbase to store the user name and passeord an all other information. Now i have thin client at my college. so to access /dev/dsp for audio is not possible on server. So i have written code which run on /base since it has... (0 Replies)
Discussion started by: niravuchat
0 Replies

2. UNIX for Dummies Questions & Answers

configuring sendmail.cf version is 1.74

Hello Please someone guide me to configure sendmail.cf on AIX 5.3 The sendmail.cf version is 1.74( bos53A src/bos/usr/sbin/sendmail/sendmail.cf 1.74) Thanks Amruta (0 Replies)
Discussion started by: Amruta Pitkar
0 Replies

3. UNIX for Dummies Questions & Answers

Configuring Sendmail

Hi anyone knows how to Configuring Sendmail on /usr/lib/mail/cd on solaris 9? i cannot find the sendmail.mc file and i not able to use m4 to compile! Pls help Thanks Summer (3 Replies)
Discussion started by: summerpeh
3 Replies

4. HP-UX

Configuring sendmail to modify the domain name

Hi, I would like to change the domain name using sendmail. For example, currently mails are sent like user@domain1.com I would like to change it to user@domain2.com How this can be done from HP-UX? Your help is highly appreciated. Thanks in advance. (0 Replies)
Discussion started by: smuthuvel
0 Replies

5. Linux

configuring an NTP client/server

I need to configure an NTP daemon on a "bridge-PC" connected on 2 LANs. It is expected to read the correct time on a time server on the first LAN and behave as a server for the second LAN. Can I do both the things with ntpd? In other words, is ntpd able to work as client and server at the same... (3 Replies)
Discussion started by: bigjim33
3 Replies

6. Shell Programming and Scripting

Configuring sendmail option

Hi, I have a script which check for the health of an application. In the end I want to attache a file to send the information to the user using sendmail. How to configure sendmail in linux?How to attach a file and send it as a mail from script? Ahamed. (3 Replies)
Discussion started by: ahamed
3 Replies

7. Solaris

Configuring send mail client in solaris 10

Dear all, We have SMTP server in our organization & i want to send e-mails from solaris machine using sendmail ... in which file i need to put the smtp server ip, username & passwd.. kindly help ....... (4 Replies)
Discussion started by: vishwanathhcl
4 Replies

8. UNIX for Dummies Questions & Answers

Seek help configuring Sendmail 8.14.4 Unix

Seek help configuring Sendmail 8.14.4 Unix server. Not sure if this is the correct place to post or the Unix/Linux Forums job board. Seeking help configuring sendmail 8.14.4 on my Unix server. It appears I have an open relay. I was advised I need to modify a etc/mail/dir , a command line entry... (0 Replies)
Discussion started by: raecampus
0 Replies

9. Solaris

Clarifying sendmail configuration - sendmail-client offline

Hi all, I have read about sendmail running as 2 separate process. 1 as a MSP, and the other as the real daemon or MTA. In my current configuration, the sendmail-client is disabled. Both submit.cf and sendmail.cf are left as default untouch I do not specified any mailhost... (3 Replies)
Discussion started by: javanoob
3 Replies

10. UNIX for Beginners Questions & Answers

Configuring Sendmail

Hi, I am using sendmail. I need to do the following: Send all internal emails to one relay, send to a particular external domain via a relay that required authentication. Could someone please advise on configuration? I tried one possibility but it failed. Posting "Does not work" without... (2 Replies)
Discussion started by: mojoman
2 Replies
mailstats(8)						      System Manager's Manual						      mailstats(8)

NAME
mailstats - Displays statistics about mail traffic SYNOPSIS
mailstats [-o] [-C cffile [-f stfile] FLAGS
Do not display the name of the mailer in the output. Use cffile as the name of the sendmail "cf" file instead of /var/adm/sendmail/send- mail.cf. Use stfile as the input statistics file instead of /var/adm/sendmail/sendmail.st. DESCRIPTION
The mailstats command reads the information in the /var/adm/sendmail/sendmail.st file (or in the file specified with the -f flag), formats it, and writes it to standard output. Note also that you can change the location of the sendmail.st file by editing its pathname in the sendmail.cf file. EXAMPLES
The format of the information is shown in the following example, in which the first field (M) contains a number that indicates the position of that mailer in the sendmail.cf file, starting at 0 (zero). For example, the first mailer in the sendmail.cf file corresponds to the number 0 in the mailstats display, the second mailer corresponds to the number 1, and so on. Statistics from Thu Feb 17 11:20:01 2000 M msgsfr bytes_from msgsto bytes_to msgsrej msgsdis Mailer 1 50 77K 1 3K 0 0 local 6 43 59K 58 99K 0 0 smtp ============================================================ T 93 136K 59 102K 0 0 The fields in the report have the following meanings: Indicates the position of the mailer in the sendmail.cf file. Indicates the number of messages received by the local machine from the indicated mailer. Indicates the number of bytes in the messages received by the local machine from the indicated mailer. Indicates the number of messages sent from the local machine using the indicated mailer. Indicates the number of bytes in the messages sent from the local machine using the indicated mailer. Indicates the number of rejected messages. Indicates the number of discarded messages. Indicates the name of the mailer. If sendmail transmits mail directly to a file, such as the dead.letter file or an alias target, the message and byte counts are credited to the prog mailer, as defined in the sendmail.cf file. However, mailstats will still default to var/adm/sendmail/sendmail.st. FILES
Specifies the command path Contains system statistics Contains configuration information for sendmail RELATED INFORMATION
Commands: sendmail(8) delim off mailstats(8)
All times are GMT -4. The time now is 04:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy