Sponsored Content
Operating Systems AIX Mutt from address and hostname Post 302907384 by kah00na on Friday 27th of June 2014 12:26:16 PM
Old 06-27-2014
I put this in my /etc/sendmail.cf file, but it changes all outgoing e-mails from the server to be from the domain "mycompany.com":
Code:
# class E: names that should be exposed as from this host, even if we masquerade
# class L: names that should be delivered locally, even if we have a relay
# class M: domains that should be converted to $M
# class N: domains that should not be converted to $M
#CL root
#C{E}root
C{M}mycompany.com

# who I masquerade as (null for no masquerading) (see also $=M)
DMmycompany.com

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

IP address/hostname problem

I have a problem that when I am pinging with the IP address it is giving me whether a server is alive or not but when I am trying it with hostname it is giving unknown host I have checked in /etc/hosts file and the IP address and hostname are both there...still the problem is there.. Can... (1 Reply)
Discussion started by: uLearner
1 Replies

2. Shell Programming and Scripting

Read Hostname and Return IP Address

Dear Experts, I have a text file on my itanium box which contains list of nearly 1000 hostnames. I do not have the IP Address of them. I want read each entry from the text file and want to do a nslookup to the DNS Server and get the IP Adresses and put them in another file in the format... (1 Reply)
Discussion started by: PrasannaKS
1 Replies

3. Shell Programming and Scripting

Convert IP address (within a line) to hostname

I have a tricky problem, and I'm quite the scripting newb. I have Cisco ACLs that have IP addresses in them. I'd like to convert the IP's to hostnames for easier analysis. A sample ACL input file would be (I've obfuscated the IPs): access-list acl-secure-out line 1 extended permit icmp any... (3 Replies)
Discussion started by: scolazz
3 Replies

4. UNIX for Dummies Questions & Answers

Routing or Iptables connections by hostname or ip address

edit; I found a solution that works, see thread #3 https://www.unix.com/302417065-post3.html Hi there, I have a small dedicated server that has four ip addresses and by default my httpd sends request using the servers main ip for all outbound connections. I'm quite amateur at routing and... (4 Replies)
Discussion started by: mooofa
4 Replies

5. Emergency UNIX and Linux Support

HP UX - ILO Console hostname different than Machine Hostname...

Hi All, So we added a new HP-UX 11.31 machine. Copied OS via Ignite-UX (DVD)over from this machine called machine_a. It was supposed to be named machine_c. And it is when you log in...however when I'm in the ILO console before logging in, it says: It should say: What gives? And how do... (4 Replies)
Discussion started by: zixzix01
4 Replies

6. Shell Programming and Scripting

Need to get return code from mutt if an address is invalid/undeliverable from Unix shell script

I am using mutt on ksh Unix to send emails to addresses plucked from the database. If the "To:" email address is not longer valid and so the email is not sent to the "To:" recipient, but is sent to the valid cc address, I need to be able to get an error code returned to the shell script so that... (3 Replies)
Discussion started by: jzuber
3 Replies

7. Shell Programming and Scripting

How to change the sender's name or E-mail address in mutt command

Can any one help me in this ??? How to change sender's name or email address in Mutt command??? (4 Replies)
Discussion started by: sarathi
4 Replies

8. UNIX for Dummies Questions & Answers

Solaris - How to get IP Address from a hostname?

We are using Solaris as our database OS. Can you please help me to know how can i get the IP address of a solaris machine in my network from its hostname? e.g. We have a remote database server with the hostname as xyz. Without connecting to the database OS, can i get the IP address of xyz OS from... (1 Reply)
Discussion started by: Anmol Sharma
1 Replies

9. AIX

AIX How to exchange hostname and IP address between two AIX servers?

Hi all, I am trying to exchange hostname and IP address of two AIX machines. But i am confused as how to change it ? do i need to use "smitty mktcpip" or "smitty tcpip" ? what is the difference between smitty mktcpip and smitty tcpip ? Also anymore steps to follow or just updating... (3 Replies)
Discussion started by: lramsb4u
3 Replies

10. Solaris

SMTP relay one (1) hostname with two (2) IP Address

Hi, Anyone can help? Currently : I'm am using a smtp smart relay, 1 hostname but different IP Address 192.168.2.108 and 192.168.2.109). I'm using "smtp.mailhostname.com mailhost" and having an IP Address 192.168.2.108, but there is a certain minutes/seconds that the IP Address will... (2 Replies)
Discussion started by: fspalero
2 Replies
MSG2SMTP(1)						      General Commands Manual						       MSG2SMTP(1)

NAME
msg2smtp - a 'bridge' between MUA and GNU Anubis SYNOPSIS
msg2smtp -h HOST [-p PORT] [-e HELO_DOMAIN] [-U USERNAME] [-P PASSWORD] [-m MECHANISM] [-d] DESCRIPTION
This manual page documents briefly the msg2smtp command. msg2smtp is a program that takes a mail message on STDIN and relays it to an SMTP server. MUA (Mutt) --> msg2smtp.pl --> Anubis --> remote or local MTA This can be used whenever you want to convert a mail message on STDIN and talk to an SMTP server as output. Just like sendmail do. If you want to use this script with Mutt, add this to Mutt configuration file: set sendmail="/PATHTO/msg2smtp.pl -h localhost" If you run GNU Anubis on port 4000, you would put this line in your muttrc: set sendmail="/PATHTO/msg2smtp.pl -h localhost -p 4000" OPTIONS
A summary of options is included below: -h HOST hostname of SMTP server, often 'localhost', -p PORT port of the SMTP server, -e HELO_DOMAIN domain we use when to say helo to smtp server, -U USERNAME ESMTP auth username, -P PASSWORD ESMTP auth password, -m MECHANISM ESMTP auth mechanism - default is PLAIN, -d shows SMTP conversation and perl debugging. SEE ALSO
anubis(1), sendmail(1), mutt(1). AUTHOR
msg2smtp was written by Michael de Beer <michael@debeer.org>. This manual page was written by Krzysztof Burghardt <krzysztof@burghardt.pl>, for the Debian project (but may be used by others). 2007 Aug 26 MSG2SMTP(1)
All times are GMT -4. The time now is 10:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy