Sponsored Content
Special Forums UNIX and Linux Applications Postfix - If To: address is $x. Change From: adress to $y Post 302830949 by Just Ice on Tuesday 9th of July 2013 09:48:01 PM
Old 07-09-2013
it would be much easier and more convenient to everybody involved if you just reset the sender field when you run your mail command ... see man postfix and man mailx -- look for discussion on -r option ...
Code:
echo "your message here" | mailx -s "your warning" -r sender@some.com  $admingroup@some.com

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to change the MAC adress in ethernet adapter for SUN

I have installed in the server a quad ethernet adapter, I'm using two interfaces with two different IP networks, both interfaces are connected to a switch, the switch report that is receiving the same MAC address in both ports so must of the times I have connectivity problems. Any idea to change... (1 Reply)
Discussion started by: mono673
1 Replies

2. HP-UX

Change IP Adress

I want change my IP address and hostname in my machine by use the console. Can any one tell me how can I execute that by command ? Thanks & Regards (1 Reply)
Discussion started by: magasem
1 Replies

3. IP Networking

How to change IP address

Can anyone tell me how to change the IP address on a unix server, as I have no idea whatsoever. Thanks (2 Replies)
Discussion started by: itservices
2 Replies

4. Shell Programming and Scripting

change from address in mailx

Hi, i am sending mails regulary for updation of data. The from addresses dispaly like POP.RECH@skk182.com i want display like oracle@skk182.com can u help me on this. (1 Reply)
Discussion started by: koti_rama
1 Replies

5. IP Networking

postfix - reinject mail to postfix from hold queue directory

hi all. Am using smtpd_recipient_restrictions & check_recipient_access in postfix. The hash file looks like this: emailaddress1 HOLD emailaddress2 HOLD The aim is to place email from these recipients in the hold directory,check them then reinject them back in postfix on some... (0 Replies)
Discussion started by: coolatt
0 Replies

6. UNIX for Advanced & Expert Users

postfix sender address rewriting

Hi, I have a postfix server that relays to an exchange server. All of my unix/linux systems send to this server, the problem is the form the mail is sent with, the sender address is username@hostname.domain.local I need to rewrite every sender address to unix@maildomain.com for... (0 Replies)
Discussion started by: funksen
0 Replies

7. UNIX for Dummies Questions & Answers

Please help with Postfix config issue - How to allow remote Exchange server to relay to my postfix

Hi guys One of our clients have a problem with sending email to a certain domain. No matter what we try, the mails just dont get delivered. What I did then, is created a new connector on their Exchange server, pointing all mail sent to their client at "domain1" to relay to our Postfix mail... (0 Replies)
Discussion started by: wbdevilliers
0 Replies

8. Solaris

How to change IP adress of mailserver in Solaris?

Hi all, Our IT changes mailserver's IP address and I am trying to change it but with no success. I am running Solaris 10. I changed IP address of mail server in /etc/hosts file, performed make sendmail.cf but server still sends mais using old IP. Can anyone let me know which actions... (12 Replies)
Discussion started by: nypreH
12 Replies

9. UNIX for Dummies Questions & Answers

How can i change the ip address in RHEL 6?

I need to change the ip address in RHEL 6 . Please tell me the files to be edited....complete procedure.......... Don't tell the graphical method ........ Explain everything in CLI ........... Thanks in Advance:b: (3 Replies)
Discussion started by: vamshigvk475
3 Replies

10. IP Networking

Cannot change mac address

ubuntu / xubuntu 13.10 and 14.04 (this issue should exist in debian as well) I use wifi to connect to internet. I would like to change the wifi card mac address before connecting. Let's call the original mac address, macA, and the new mac address, macB. I do the following: ifconfig wlan0... (2 Replies)
Discussion started by: arpagon
2 Replies
qmail-local(8)						      System Manager's Manual						    qmail-local(8)

NAME
qmail-local - deliver or forward a mail message SYNOPSIS
qmail-local [ -nN ] user homedir local dash ext domain sender defaultdelivery DESCRIPTION
qmail-local reads a mail message and delivers it to user by the procedure described in dot-qmail(5). The message's envelope recipient is local@domain. qmail-local records local@domain in a new Delivered-To header field. If exactly the same Delivered-To: local@domain already appears in the header, qmail-local bounces the message, to prevent mail forwarding loops. The message's envelope sender is sender. qmail-local records sender in a new Return-Path header field. homedir is the user's home directory. It must be an absolute directory name. dash and ext identify the .qmaildashext file used by qmail-local; see dot-qmail(5). Normally dash is either empty or a lone hyphen. If it is empty, qmail-local treats a nonexistent .qmailext the same way as an empty .qmailext: namely, following the delivery instructions in defaultdelivery. The standard input for qmail-local must be a seekable file, so that qmail-local can read it more than once. OPTIONS
-n Instead of reading and delivering the message, print a description of the delivery instructions. -N (Default.) Read and deliver the message. EXIT CODES
0 if the delivery is completely successful; nonzero if any delivery instruction failed. Exit code 111 indicates temporary failure. SEE ALSO
dot-qmail(5), envelopes(5), qmail-command(8), qmail-queue(8), qmail-send(8), qmail-lspawn(8) qmail-local(8)
All times are GMT -4. The time now is 12:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy