Sponsored Content
Operating Systems AIX Change "root" to "root.admin" in outgoing e-mails Post 302915474 by kah00na on Wednesday 3rd of September 2014 09:22:28 AM
Old 09-03-2014
Change "root" to "root.admin" in outgoing e-mails

Our AIX servers send e-mails which have the "from" address set to "root@company.com" for our root user ("C{M}company.com" in /etc/sendmail.cf). The problem is that when bad e-mails are sent out or rejected by remote servers, they are being returned and delivered to e-mail box of "Mary Root".

How can I change/alias/masquerade out going e-mails to look like they are coming from "root.admin@company.com" when root sends e-mails?
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to request a "read" or "delivered" receipt for mails

Dears, I've written a script which allows me to send mails in different formats with different attaches. Now I still want to add a feature to this script. My users would like to be able to receive a "read" or "delivered" receipt for their mails. The script send mails on behalve of an specific... (1 Reply)
Discussion started by: plelie2
1 Replies

2. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

3. Solaris

difference between "root" and "usr" packages

Hi, could someone pls enlighten me on the difference between the "root" package and "usr" package? Like in this example: pkginfo -l SUNWGtku | grep -i desc DESC: GTK - The GIMP Toolkit (Usr) and pkginfo -l SUNWGtkr | grep -i desc DESC: GTK - The GIMP Toolkit (Root)... (6 Replies)
Discussion started by: masloff
6 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Shell Programming and Scripting

Awk,sed : change every 2nd field ":" to "|"

Hi Experts, I have a string with colon delimited, want 2nd colon to be changed to a pipe. data: 101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3: I am trying with sed, but can change only 1 occurance: echo "101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3:" | sed 's/:/|/2'... (5 Replies)
Discussion started by: rveri
5 Replies

6. Shell Programming and Scripting

Find lines with "A" then change "E" to "X" same line

I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies

7. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

9. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
DMA(8)							    BSD System Manager's Manual 						    DMA(8)

NAME
dma -- DragonFly Mail Agent SYNOPSIS
dma [-DiOt] [-Amode] [-bmode] [-f sender] [-L tag] [-ooption] [-r sender] [-q[arg]] [recipient ...] DESCRIPTION
dma is a small Mail Transport Agent (MTA), designed for home and office use. It accepts mails from locally installed Mail User Agents (MUA) and delivers the mails either locally or to a remote destination. Remote delivery includes several features like TLS/SSL support and SMTP authentication. dma is not intended as a replacement for real, big MTAs like sendmail(8) or postfix(1). Consequently, dma does not listen on port 25 for incoming connections. The options are as follows: -Amode -Ac acts as a compatibility option for sendmail. -bmode -bp List all mails currently stored in the mail queue. -bq Queue the mail, but don't attempt to deliver it. See also the 'DEFER' config file setting below. All other modes are are ignored. -D Don't run in the background. Useful for debugging. -f sender Set sender address (envelope-from) to sender. This overrides the value of the environment variable EMAIL. -i Ignore dots alone on lines by themselves in incoming messages. This should be set if you are reading data from a file. -L tag Set the identifier used in syslog messages to the supplied tag. This is a compatibility option for sendmail. -O This is a compatibility option for sendmail. -ooption Specifying -oi is synonymous to -i. All other options are ignored. -q[arg] Process saved messages in the queue. The argument is optional and ignored. -r sender Same as -f. -t Obtain recipient addresses from the message header. dma will parse the To:, Cc:, and Bcc: headers. The Bcc: header will be removed independent of whether -t is specified or not. CONFIGURATION
dma can be configured with two config files: o auth.conf o dma.conf These two files are stored per default in /etc/dma. FILE FORMAT
Every file contains parameters of the form 'name value'. Lines containing boolean values are set to 'NO' if the line is commented and to 'YES' if the line is uncommented. Empty lines or lines beginning with a '#' are ignored. Parameter names and their values are case sensi- tive. PARAMETERS
auth.conf SMTP authentication can be configured in auth.conf. Each line has the format ``user|smarthost:password''. dma.conf Most of the behaviour of dma can be configured in dma.conf. SMARTHOST (string, default=empty) If you want to send outgoing mails via a smarthost, set this variable to your smarthosts address. PORT (numeric, default=25) Use this port to deliver remote emails. Only useful together with the 'SMARTHOST' option, because dma will deliver all mails to this port, regardless of whether a smarthost is set or not. ALIASES (string, default=/etc/aliases) Path to the local aliases file. Just stick with the default. The aliases file is of the format nam: dest1 dest2 ... In this case, mails to nam will instead be delivered to dest1 and dest2, which in turn could be entries in /etc/aliases. The special name '*' can be used to create a catch-all alias, which gets used if no other matching alias is found. Use the catch-all alias only if you don't want any local mail to be delivered. SPOOLDIR (string, default=/var/spool/dma) Path to dma's spool directory. Just stick with the default. AUTHPATH (string, default=not set) Path to the 'auth.conf' file. SECURETRANS (boolean, default=commented) Uncomment if you want TLS/SSL secured transfer. STARTTLS (boolean, default=commented) Uncomment if you want to use STARTTLS. Only useful together with 'SECURETRANS'. OPPORTUNISTIC_TLS (boolean, default=commented) Uncomment if you want to allow the STARTTLS negotiation to fail. Most useful when dma is used without a smarthost, delivering remote messages directly to the outside mail exchangers; in opportunistic TLS mode, the connection will be encrypted if the remote server sup- ports STARTTLS, but an unencrypted delivery will still be made if the negotiation fails. Only useful together with 'SECURETRANS' and 'STARTTLS'. CERTFILE (string, default=empty) Path to your SSL certificate file. SECURE (boolean, default=commented) Uncomment this entry and change it to 'INSECURE' to use plain text SMTP login over an insecure connection. You have to rename this variable manually to prevent that you send your password accidentally over an insecure connection. DEFER (boolean, default=commented) Uncomment if you want that dma defers your mail. You have to flush your mail queue manually with the -q option. This option is handy if you are behind a dialup line. FULLBOUNCE (boolean, default=commented) Uncomment if you want the bounce message to include the complete original message, not just the headers. MAILNAME (string, default=empty) The internet hostname dma uses to identify the host. If not set or empty, the result of gethostname(3) is used. If 'MAILNAME' is an absolute path to a file, the first line of this file will be used as the hostname. MASQUERADE (string, default=empty) Masquerade the envelope-from addresses with this address/hostname. Use this setting if mails are not accepted by destination mail servers because your sender domain is invalid. This setting is overridden by the -f flag and the EMAIL environment variable. If 'MASQUERADE' does not contain a @ sign, the string is interpreted as a host name. For example, setting 'MASQUERADE' to 'john@' on host 'hamlet' will send all mails as 'john@hamlet'; setting it to 'percolator' will send all mails as 'username@percolator'. NULLCLIENT Bypass aliases and local delivery, and instead forward all mails to the defined 'SMARTHOST'. 'NULLCLIENT' requires 'SMARTHOST' to be set. Environment variables The behavior of dma can be influenced by some environment variables. EMAIL Used to set the sender address (envelope-from). Use a plain address, in the form of user@example.com. This value will be overridden when the -f flag is used. SEE ALSO
mailaddr(7), mailwrapper(8), sendmail(8) J. B. Postel, Simple Mail Transfer Protocol, RFC 821. J. Myers, SMTP Service Extension for Authentication, RFC 2554. P. Hoffman, SMTP Service Extension for Secure SMTP over TLS, RFC 2487. HISTORY
The dma utility first appeared in DragonFly 1.11. AUTHORS
dma was written by Matthias Schmidt <matthias@dragonflybsd.org> and Simon Schubert <2@0x2c.org>. BSD
February 13, 2014 BSD
All times are GMT -4. The time now is 02:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy