Postfix Modify Recipient Address

Hi,
I am trying to configure my postfix to do the following :
when received a message to :
xxx@domain.com
change the recipient to :
xxx@host.doamin.com

can't find where to do it .

Kindly assist.

Yoni


Similar Content



Postfix Modify Recipient Address

Hi,
I am trying to do the following , when a message arrived to : xxx@domain.com
change it to :
xxx@host.domain.com .

how i can do it ?

Thanks

Yoni

Mail Using Telnet SMTP

Hi All,

I am trying to send email using telnet to smtp as mailx and other functionality is restricted by administrator.

I am not able to figure out as how to attach any text or any file using the below.

I am following all instructions and steps as shown at http://exchange.mvps.org/smtp_frames.htm

1. telnet <servername> 25
2. helo <your domain name><enter>
3. mail from: <your Email Address><enter>
response should be as follows
250 OK - mail from <your Email address>

rcpt to: <recipient address><enter>
response should be as follows
250 OK - Recipient <recipient address>

data<enter>
response should be as follows
354 Send data. End with CRLF.CRLF

To: <recipient's display name><enter>
From: <your display name><enter>
Subject: <Subject field of Email message><enter>
<Enter you body text><enter><enter> . <enter>
response should be as follows
250 OK

quit<enter>

Roundcube Connection To Storage Server

Hie, I keep getting error like these in may mail log and some emails are not delivering.

May 15 16:37:27 masvingocity postfix/qmgr[39895]: B4AE5C5D2F90: from=<lawretanya@masvingocity.co.zw>, size=15826, nrcpt=2 (queue active)
May 15 16:37:34 masvingocity postfix/smtp[47626]: connect to mail.crocoholdings.co.zw[41.191.234.234]:25: Connection refused
May 15 16:37:34 masvingocity postfix/smtp[47626]: B4AE5C5D2F90: to=<tarisaim@crocoholdings.co.zw>, relay=none, delay=100379, delays=100371/0.03/7.5/0, dsn=4.4.1, status=deferred (connect to mail.crocoholdings.co.zw[41.191.234.234]:25: Connection refused)

Email / Webmail

I have an Ec2 Ubuntu instance on Amazon. I have my own web domain connected to that server. I want my own email like ron@myserver.com. I'm confused if I need postfix, squirrelmail, or roundcube. If someone could point me to what I need that would be great. Thanks

Which MTA's Are Most Used

hi guys,

i read that sendmail is pretty awkward to setup and configure
and that postfix and exim are easier to use

what linux mail solutions are used in most companies...

lastly,are linux MTA's just as powerful as MS exchange (which i know a lot of companies use)

Telnet / Postfix Connection Refused Question For CENTOS 6.4

Good Morning! I am supporting the coffee and Doritos industry with my frustration with this problem. I have been battling it for two months. I have several Red Hat books, the official Red Hat study guide, and have searched the forums for weeks with no avail. I was wondering if you have ever had this?

I am trying to "telnet server.example.com 25" or telnet in general. Both servers are running on a KVM on the 192.168.122.0/24 network.


[root@server ~]# telnet server.example.com
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying 192.168.122.191...
telnet: connect to address 192.168.122.191: Connection refused

I can ssh, run NFS, and also run internal postfix e-mails.

IPTABLES IS TURNED OFF ON BOTH CLIENTS

Postfix and Telnet is configured on both clients, with both listening:

[root@server ~]# netstat -tulpn |grep :25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1802/

When I Telnet from client named 'Server' to client named 'ISCSI', tpcdump on client 'ISCSI' gives the following:

19:01:23.579330 STP 802.1d, Config, Flags [none], bridge-id 8000.52:54:00:2e:85:0e.8003, length 43
19:01:23.632750 IP server.57477 > iscsi.example.com.telnet: Flags [S], seq 2403459934, win 14600, options [mss 1460,sackOK,TS val 2679191 ecr 0,nop,wscale 6], length 0
19:01:23.632882 IP iscsi.example.com.telnet > server.57477: Flags [R.], seq 0, ack 2403459935, win 0, length 0
19:01:24.428091 IP server.57478 > iscsi.example.com.telnet: Flags [S], seq 942066757, win 14600, options [mss 1460,sackOK,TS val 2679990 ecr 0,nop,wscale 6], length 0
19:01:24.428163 IP iscsi.example.com.telnet > server.57478: Flags [R.], seq 0, ack 942066758, win 0, length 0
19:01:25.006222 IP server.57479 > iscsi.example.com.telnet: Flags [S], seq 2689610466, win 14600, options [mss 1460,sackOK,TS val 2680564 ecr 0,nop,wscale 6], length 0

Postfix Email Not Working In Oracle Linux

I have setup postfix in Oracle Linux VM in virtualbox to test simple email sends that I am sending it to my personal email.

I have configured the following in main.cf file

myhostname = abc.testserver.org
myorigin = $myhostname
inet_interfaces = localhost
#relayhost = localhost.localdomain - I have this commented as of now, but I tried with the localhost.localdomain, IP address and none worked. I also do not have my ISP's server details and I also do not want to use it.

I checked the /var/log/maillog and I see the following

Code:
May  4 17:25:37 oim sendmail[31684]: t44LPbKA031684: from=root, size=72, class=0, nrcpts=1, msgid=<201505042125.t44LPbKA031684@localhost.localdomain>, relay=root@localhost
May  4 17:25:37 oim sendmail[31685]: t44LPbSn031685: from=<root@localhost.localdomain>, size=378, class=0, nrcpts=1, msgid=<201505042125.t44LPbKA031684@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
May  4 17:25:37 oim sendmail[31684]: t44LPbKA031684: to=abc@abc.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30072, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t44LPbSn031685 Message accepted for delivery)


I can also see the messages in /var/spool/mqueue/. The telnet to the localhost 25 port also works. Is any of the config settings wrong?

Thanks.

Sending Mail From Command Line

I searched the forums for my title and I am not finding exactly what I am looking for. I am not using a program to send mail, such as Thunderbird or whatever. I simply want to be able to send mail from my Ubuntu 14.04 DESKTOP version for logging. I use a program called Logwatch (used alot in RHEL or CentOS) to monitor the server itself. The program sends mail to the root user account on the machine, which I can check and see, and within the program conf file, I can add an external email address, but it never sends.

I'm familiar with the SMTP concept of sending mail, outgoing mail server authentication, etc. I don't care to run this box as an SMTP server, but I understand that I need some sort of SMTP or MTA program to send mail into the real world. I tried Postfix but couldn't get that to work, and the Logwatch program wants to use sendmail, so I installed that but I am having the same issue. I am sure it is a step I am missing.

I also can't figure out how to get the 'mail' cmd from Terminal to work. I use this command:
Code:
mail -s "test" | /usr/sbin/mail myemail@domain.com

it follows through the subject, CC, body, but when I try to hit either . or CTRL-D, it never sends the email, in fact is does nothing.

I also tried sendmail with this command:
Code:
sendmail -v my@email.com < /dev/null

I was just trying to send a test email. It logs into my SMTP mail server, which I already configured, and it tells me to type out the mail, then end with a "." by itself on a single line. I try this and it just sits there.

I am missing SOMETHING when trying to actually send the mail. I can get it written with subject and body, connected, but it never sends and I am probably missing a / or something.

I did find and follow these instructions, but it still isn't working with sendmail. If I need to go back to Postfix, I can do that, I don't honestly care what I use, I just want some programs such as Logwatch to be able to email me.
http://stackoverflow.com/questions/1...mail-on-ubuntu

How To Point A Registered Domain On Public IP

Hi,

I have a CentOS 7.

I have purchased a new domain name abcxxx.com

I want to configure this domain name on my centOS 7 server

I have installed httpd on centos 7 and my site working fine as localhost but I want to open this site using purchased domain name.

Please help to configure domain name on centos 7.

I will deeply appreciate it.

Thank You

Grep Output Of Command To Return 1 Or 0 For If Then Statement

So, I'm new here. Was thrown into the deepend (read: shallow pool) of linux administration of a few centos 6.5 servers in October, and I've been pretty slow on the uptake. Years of Windows administration and desktop support will do that I guess.

So we have qmail on our prod servers that send out messages for our webapps. Postfix failed last night on a prod server, and it occurred to me that it's happened a few times since I've started, and instead of waiting for clients to tell us, I should be more proactive. I came up with/begged/borrowed/stole a quick script to check to see if postscript was running, and if it was, restart it, and contact us. This was to be run from jenkins.

Quote:
if (( $(ps -ef | grep -v grep | grep postfix | wc -l) > 0 ))
then echo 'Mail is up.'
else echo 'Mail is down! Attempting to restart service...'
service postfix restart
fi
The question was then raised about an unresponsive process (zombies!), and I figured it might be a better idea to use postqueue -q, or mailq to either see a Mailbox is empty, or look for fatal if postfix is off or unresponsive. This is where I ran out of coffee and went over the deep end.

To get this to work, I thought it would be a good idea to run two scripts. One to check if the mail queue is empty, and if not, send up a flag. The next was to run a few minutes later to check and see if the mail queue was throwing up a fatal error, and if it was, throw up a second flag, which sent out an email from jenkins. Incidentally, if the mailqueue were clogged, this would also trigger an alert. Our mailqueue doesn't get a lot of traffic.

First command. Returns then and else statement without issue.
Quote:
if ((mailq | grep 'empty') < 0 ); then echo 'Mail is up.'; else echo 'Mail queue is not empty. Please check mail server'; fi
Second one... Not so much.
Quote:
if (mailq | grep 'fatal') < 1; then echo 'Mail is up.'; else echo 'Mail queue is not empty. Please check mail server'; fi
You can probably suss out what I'm trying to do here, even though I'm not doing it right. Any ideas? I know this is newbie stuff, and I appreciate your taking the time to read this people.