Mail Alias Setup

Hi,

I need some help in understanding the line for mail alias setup. I understand that when a mail is sent to the id rt, it gets redirected to the members specified in the second column. I am not sure why this gets redirected and why the | is used in here.

rt: “|/etc/smrsh/rt-mailgate --queue ‘general’ --action correspond --url !http:///”

Thanks,
Baskar N

DISCLAIMER:

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

Hi,

I need some help in understanding the line for mail alias setup. I
understand that when a mail is sent to the id rt, it gets redirected to the
members specified in the second column. I am not sure why this gets
redirected and why the | is used in here.

rt: “|/etc/smrsh/rt-mailgate --queue ‘general’ --action correspond --url
!http:///”

The “|” is a pipe.

And you don’t need the “!” before yout http in that line.

What documentation is this you are reading?

Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223


“If you have nothing good to say about someone, just shut up!.”
– Lucky Dube

Thanks much for the reply. I am looking at the documentation at http://wiki.bestpractical.com/view/FedoraCore9InstallGuide. Can you please explain what this line mean. I understand that “rt” is a mailer alias and any mail sent to rt in this server will be sent to user in the second column.

Thanks,
Baskar NFrom: Odhiambo Washington [mailto:odhiambo@gmail.com]
Sent: Thursday, September 03, 2009 6:08 PM
To: Baskaraganesan Natarajan
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Mail Alias Setup

Hi,

I need some help in understanding the line for mail alias setup. I understand that when a mail is sent to the id rt, it gets redirected to the members specified in the second column. I am not sure why this gets redirected and why the | is used in here.

rt: “|/etc/smrsh/rt-mailgate --queue ‘general’ --action correspond --url !http:///”

The “|” is a pipe.

And you don’t need the “!” before yout http in that line.

What documentation is this you are reading?

Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223


“If you have nothing good to say about someone, just shut up!.”
– Lucky Dube

DISCLAIMER:

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

Baskaraganesan Natarajan writes:

rt: “|/etc/smrsh/rt-mailgate --queue ‘general’ --action correspond --url http:///”

Can you please explain what this line mean. I understand that “rt” is a
mailer alias and any mail sent to rt in this server will be sent to user
in the second column.

The pipe in a UNIX shell takes the output from a program or process and
sends it to be the input of another.

When the second half of an alias begins with a pipe, it takes the output
from sendmail (the email message) and pipes it to the command listed in
the alias to be used as that program’s input - in this case, the
rt-mailgate program.

Joe Hartley | Sr. Linux SysAdmin
Retail Solutions, Inc.
40 Sharpe Drive
Cranston, RI 02920
joe.hartley@retailsolutions.com
+1 401.824.5040 (o) | +1 401.824.5002 (f)

Joe Hartley wrote:

Baskaraganesan Natarajan writes:

rt: “|/etc/smrsh/rt-mailgate --queue ‘general’ --action correspond --url http:///”

Can you please explain what this line mean. I understand that “rt” is a
mailer alias and any mail sent to rt in this server will be sent to user
in the second column.

The pipe in a UNIX shell takes the output from a program or process and
sends it to be the input of another.

When the second half of an alias begins with a pipe, it takes the output
from sendmail (the email message) and pipes it to the command listed in
the alias to be used as that program’s input - in this case, the
rt-mailgate program.

And, depending on your mts and unix/linux distro, the man page for 

alias will have a paragraph explaining that in addition to aliasing one
address to the other, you can also pass the email to a program by using
the unix pipe “|” thingie.