Sponsored Content
Top Forums Shell Programming and Scripting Adding 'from' email address alias in Linux. Post 302903946 by Aia on Saturday 31st of May 2014 02:44:08 AM
Old 05-31-2014
Quote:
Originally Posted by SriniShoo
Code:
mailx -s "Subject" -r "from_address@test.com" "to_address@test.com"

mailx -r does set as well the Return-Path which may or may not be what is wanted, and if the format "Name Title <me@here.com>" is given as requested, the Return-Path gets <me@here.com> which is not valid.

As per the documentation:

Quote:
-r address
Sets the From address. Overrides any from variable specified in
environment or startup files. Tilde escapes are disabled. The
-r address options are passed to the mail transfer agent unless
SMTP is used. This option exists for compatibility only; it is
recommended to set the from variable directly instead.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Send email where # is in the email address - Using Unix

Hi All, How do I send an email using malix where email address contains a #. I have a email address like this : #test@test.com I want to send email like malix -s "TEST" #test@test.com < SOMEFILE I tried \# but doesn't work. Please let me know how we can achieve this? I am in... (1 Reply)
Discussion started by: jingi1234
1 Replies

2. Shell Programming and Scripting

adding a new alias to Aliases

when we invoke a line we write alias aliasname " " but i have on the original line "specific string" so it must be alias aliasname " "specific string" " and it cause me trouble what can i do ? (5 Replies)
Discussion started by: eynkesef
5 Replies

3. UNIX for Dummies Questions & Answers

redirection to email address

Can someone please tell me the format to redirect an output file to an email address? thanks (4 Replies)
Discussion started by: 4Given
4 Replies

4. UNIX for Advanced & Expert Users

Send email using alias name through mailx

Hi, My requirement is I have to send email using mailx command and the recipient of the mail should see a alias instead of email address in his mail box. The same functionality that we get when we sent email using an address book. Is this functionality possible through mailx? I tried doing... (5 Replies)
Discussion started by: vamsisurampalli
5 Replies

5. Shell Programming and Scripting

Changing the sender Email address to Alias

Hi All, I want to change the email address of the sender to some alias for eg: FROM:noreplyecommerce@test.com needs to be changes to TEST Please help me. (3 Replies)
Discussion started by: sithara
3 Replies

6. Emergency UNIX and Linux Support

Bad Address when adding system call

Hi guys. I have downloaded kernel 2.6.38-5 to add a system call. I did the following steps: 1. I have added my system call to system call table <src folder>/arc/x86/kernel/syscall_table_32.S .long sys_mycall 2. i have added the system cal number in <src... (5 Replies)
Discussion started by: majid.merkava
5 Replies

7. Red Hat

Postfix - want to send email to some non-existent user using alias

Hi, I know how to use email redirection using /etc/aliases file + postfix combination and it is working fine for existing users. The question I have is: I want to send an email to tony@server1.example.com while tony user is actually not there. Rather, I want to redirect that email to... (0 Replies)
Discussion started by: freebird8z
0 Replies

8. Forum Support Area for Unregistered Users & Account Problems

Cant use certain email address

I tried to re-register using my new email address which is <firstname>@<surname>.me But it never sent out the email confirmation. I had to hit the back button and use my gmail address instead and it came through instantly. Is there a problem with using .me addresses? (1 Reply)
Discussion started by: frustin
1 Replies

9. Post Here to Contact Site Administrators and Moderators

VIP Membership - The UNIX and Linux Forums - Get Your UNIX.COM Email Address Here

We work hard to make The UNIX and Linux Forums one of the best UNIX and Linux knowledge sources on the net. The site is certainly one of the top UNIX and Linux Q&A sites on the web. In order to provide certain members the best quality account services, you can now get some great extra features by... (2 Replies)
Discussion started by: Neo
2 Replies
EXIM_CHECKACCESS(8)					      System Manager's Manual					       EXIM_CHECKACCESS(8)

NAME
exim_checkaccess - Check address acceptance from given IP SYNOPSIS
exim_checkaccess IP-address email@address [more Exim options] DESCRIPTION
Exim's -bh command line argument allows you to run a fake SMTP session with debugging output, in order to check what Exim is doing when it is applying policy controls to incoming SMTP mail. However, not everybody is sufficiently familiar with the SMTP protocol to be able to make full use of -bh, and sometimes you just want to answer the question "Does this address have access?" without bothering with any fur- ther details. The exim_checkaccess utility is a 'packaged' version of -bh. It takes two arguments, an IP address and an email address: exim_checkaccess 10.9.8.7 A.User@a.domain.example The utility runs a call to Exim with the -bh option, to test whether the given email address would be accepted in a RCPT command in a TCP/IP connection from the host with the given IP address. The output of the utility is either the word 'accepted', or the SMTP error response, for example: Rejected: 550 Relay not permitted When running this test, the utility uses "<>" as the envelope sender address for the MAIL command, but you can change this by providing additional options. These are passed directly to the Exim command. For example, to specify that the test is to be run with the sender address "himself@there.example" you can use: exim_checkaccess 10.9.8.7 A.User@a.domain.example -f himself@there.example Note that these additional Exim command line items must be given after the two mandatory arguments. BUGS
This manual page needs a major re-work. If somebody knows better groff than us and has more experience in writing manual pages, any patches would be greatly appreciated. SEE ALSO
exim(8), /usr/share/doc/exim4-base/ AUTHOR
This manual page was stitched together from spec.txt by Andreas Metzler <ametzler at downhill.at.eu.org>, for the Debian GNU/Linux system (but may be used by others). March 26, 2003 EXIM_CHECKACCESS(8)
All times are GMT -4. The time now is 09:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy