Sponsored Content
Special Forums IP Networking Set default return address for all mails sent from mailx Post 302730323 by aixlover on Monday 12th of November 2012 03:03:20 PM
Old 11-12-2012
Set default return address for all mails sent from mailx

Hi, I have a question about mailx in Red Hat:

If I use 'mail userid@mydomain.com -- -f root@mydomain.com', the return mail address will be root@mydomain.com.

How can I make all mails sent from this system use root@mydomain.com as return address by default?

Thank you in advance!

nz
 

10 More Discussions You Might Find Interesting

1. Solaris

how to send mails to users on exchange server from sendmail/solaris(mailx)

Hi, Can anyone pls. tell me how to access Active directory from solaris. I am looking at solution by which I can send mail notification from the logs generated by scripts, to the users on Exchange server. I am trying for a Perl-LDAP module , but don't realy know how to go for it (5 Replies)
Discussion started by: ganeshh
5 Replies

2. UNIX for Dummies Questions & Answers

Does Mailx store the mails sent

Hi, I use mailx in a shell script to mail a message to the users. i wanted to know if mailx stores the mail that it sends? for eg in microsoft outlook all mails sent get stored in the outbox. is there such a facility with mailx? if not how i can do this so that for every mail sent, a backup... (6 Replies)
Discussion started by: munira_johar
6 Replies

3. Debian

cannot send any mails using mailx

hi howto configure mailx ? kind regards ccc (11 Replies)
Discussion started by: ccc
11 Replies

4. Shell Programming and Scripting

Delete all mails using mailx or mail

Hi , ?im a newbie using shell scripts. Is there any way to write a script that will delete all mails from my mailbox using mail or mailx command Thanks for your time E. Festas (2 Replies)
Discussion started by: ninjanesto
2 Replies

5. Shell Programming and Scripting

mailx is not working outside e-mails

HI i wrote schell script to send e-mail automatically. it works only e-mail for our company.say for example, company name is : abc, example: joe@abc.com every body is receiving with xxx@abc.com (abc.com) if any body from outside of our company like joe@xyz.com.(xyz.com) are not... (3 Replies)
Discussion started by: raosurya
3 Replies

6. UNIX for Dummies Questions & Answers

to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 's

Hi All, Can anyone please let me know the syntax / how to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 'system()' function and '${?}'. I am in a process to send the mail automatically with an attachment to bulk users. I have used 'Mailx' and 'Unencode'... (0 Replies)
Discussion started by: manas6
0 Replies

7. Shell Programming and Scripting

mailx- how to delete least of mails

Hi, when i run the mailx command it gives me the least of mails . suppose there are 1- 150 mails and i want to delete 30 to 145 mails . then what command i have to use here? Thanks (6 Replies)
Discussion started by: aish11
6 Replies

8. Shell Programming and Scripting

2 mails from mailx command

hi, While using mailx command i am receiving 2 mails with the same content in both the mails.I am attaching a file to the mailx command. In one mail file is coming as attachement and in other attachment is not there. I am using mailx command in this way. echo "Some content" |mailx... (0 Replies)
Discussion started by: arijitsaha
0 Replies

9. Solaris

Sending Mails to the Multiple Email Address

Hi All, I am pretty new to the mail service in Sun Solaris 5.10. If anybody help me in writing a script for the multiple recipient with subject and the body would be a helpful. Kindly help... Thanks in advance. :) Warm Regards, Pramod (5 Replies)
Discussion started by: Pramod_009
5 Replies

10. HP-UX

Mailx command running successfully but no mails received.

Hi, I am working on a HP-UX box. Mailx command running successfully but no mails received. Here is what I am doing rocfm@comhp73 - mailx -s "subject" abc@gmail.com < abc.txt Null message body; hope that's ok rocfm@comhp73 - echo $? 0 rocfm@comhp73 - echo "something" | mailx -v -s... (1 Reply)
Discussion started by: Sunayna
1 Replies
DMitry(1)						      General Commands Manual							 DMitry(1)

NAME
DMitry - Deepmagic Information Gathering Tool SYNOPSIS
dmitry [Options] host DESCRIPTION
DMitry (Deepmagic Information Gathering Tool) is a UNIX/(GNU)Linux command line application with the ability to gather as much information as possible about a host. Basic functionality of DMitry allows for information to be gathered about a target host from a simple whois lookup on the target to uptime reports and TCP portscans. The application is considered a tool to assist in information gathering when information is required quickly by removing the need to enter multiple commands and the timely process of searching through data from multiple sources. OPTIONS
Options should be passed to DMitry in the form of '-option'. Only options known by DMitry will be used and others will be ignored. If options are not passed as a group block, the trailing options will be considered a host target. -o filename Create an ascii text output of the results to the filename specified. If no output filename is specified then output will be saved to "target.txt". If this option is not specified in any form output will be sent to the standard output (STDOUT) by default. This option MUST trail all other options, i.e. "dmitry -winseo target". -i Perform an Internet Number whois lookup on the target IP address. -w Perform a whois lookup on the host target. -n Retrieve netcraft.com data concerning the host, this includes operating system, web server release and uptime information where available. -s Perform a subdomain search on the specified target. This will use serveral search engines to attempt to locate subdomains in the form of sub.target. There is no set limit to the level of subdomain that can be located, however, there is a maximum string length of 40 characters (NCOL 40) to limit memory usage. Possible subdomains are then reversed to an IP address, if this comes back posi- tive then the resulting subdomain is listed. However, if the host uses an asterisk in their DNS records all resolve subdomains will come back positive. -e Perform an e-mail address search on the specified target. This modules works using the same concept as the subdomain search by attempting to locate possible e-mail addresses for a target host. The e-mail addresses may also be for possible subdomains of the target host. There is a limit to the length of the e-mail address set to 50 characters (NCOL 50) to limit memory usage. -p Perform a TCP portscan on the host target. This module will list open, closed and filtered ports within a specific range. -f This option will cause the TCP portscan module to report/display output of filtered ports. These are usually ports that have been filtered and/or closed by a firewall at the specified host/target. This option requires that the '-p' option be passed as a previ- ous option. For example, "dmitry -pf target". -b This option will cause the TCP portscan module to output banners if they are received when scanning TCP ports. This option requires that the '-p' option be passed as a previous option. For example, "dmitry -pb target". -t This sets the Time To Live (TTL) of the portscan module when scanning individual ports. This is set to 2 seconds by default. This is usually required when scanning a host that has a firewall and/or has filtered ports which can slow down a scan. EXAMPLES
This section presents some example queries that can be made using dmitry. dmitry -w mydomain.com This will perform a named whois (INIC-WHOIS) lookup on the target host, displaying results to the standard output (STDOUT). dmitry -winsepo sometextfile.txt mydomain.com This will perform all the basic functions on the target host and store all the output into "sometextfile.txt". dmitry -winsepo mydomain.com This will perform all the basic functions on the target host and store all the output into "mydomain.txt". dmitry -winsepfbo 127.0.0.1 This will perform all the basic functions on the target host and store all the output into "127.0.0.1.txt". This will also display banners and show filtered ports. AUTHOR
This manual page was written by Runa Sandvik <runa.sandvik@gmail.com>, for the Debian GNU/Linux system (but may be used by others). DMitry(1)
All times are GMT -4. The time now is 02:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy