This is a discussion on fastforward or ~alias/.qmail- within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Hi all, I am converting a "sendmail" server to qmail, this server receives mails from the internet and ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi all,
I am converting a "sendmail" server to qmail, this server receives mails from the internet and has an /etc/aliases file already. I have a few questions: 1 - in the /etc/aliases file I have a few entries like the following: info : |"/data/bin/MailClient -b info || exit 75" which I believe does not work with fastforward. Is that correct? If yes, would ~alias/qmail-info with |"/data/bin/MailClient -b info || exit 75" in it work? If no, how else can I do this? 2 - Is ~alias/qmail-user lookup faster that fastforward's /etc/aliases or there is no difference in performance. 3- I can probably write a script to convert sendmail's /etc/aliases file to dot-qmail files but is there a utility out there to do it? Thanks, Vahid. |
|
|||
|
Vahid moghaddasi wrote:
> Hi all, > > I am converting a "sendmail" server to qmail, this server receives > mails from the internet and has an /etc/aliases file already. I have a > few questions: > > 1 - in the /etc/aliases file I have a few entries like the following: > info : |"/data/bin/MailClient -b info || exit 75" > which I believe does not work with fastforward. Is that correct? > If yes, would ~alias/qmail-info with |"/data/bin/MailClient -b info || > exit 75" in it work? > If no, how else can I do this? > > 2 - Is ~alias/qmail-user lookup faster that fastforward's > /etc/aliases or there is no difference in performance. > > 3- I can probably write a script to convert sendmail's /etc/aliases > file to dot-qmail files but is there a utility out there to do it? > > Thanks, > Vahid. > Vahid, fastforward is great and flexible. Why write a script when newaliases already exists with fast forward. Using fastforward you can bypass the need for dot-qmail files. AK |
|
|||
|
AK wrote: > > fastforward is great and flexible. Why write a script when newaliases > already exists with fast forward. > > Using fastforward you can bypass the need for dot-qmail files. Thanks AK but I thought that fastforward does not support the above format in the aliases, e.g. having 'user: |"/bin/do.pl"' in the "|" outside the quotations. I am not sure if I can change the way developers have in the aliases file w/o breaking anything. Vahid. |
|
|||
|
Vahid moghaddasi wrote:
> > AK wrote: > > >>fastforward is great and flexible. Why write a script when newaliases >>already exists with fast forward. >> >>Using fastforward you can bypass the need for dot-qmail files. > > Thanks AK but I thought that fastforward does not support the above > format in the aliases, e.g. having 'user: |"/bin/do.pl"' in the "|" > outside the quotations. I am not sure if I can change the way > developers have in the aliases file w/o breaking anything. > Vahid. > Vahid, Then, I do not understand what you are trying to do. What does do.pl do? AK |
|
|||
|
AK wrote: > > Then, I do not understand what you are trying to do. > > What does do.pl do? I am not sure what exactly the programs do as they are talking in some protocol with mainframe once that user receives an e-mail. They are all Solaris compiled binary. In sendmail's /etc/aliases, we have: info : |"/data/bin/MailClient -b info || exit 75" If a mail is sent to info, the program "MailClient" will process and send it to mainframe. Can I use the same exact /etc/aliases with fastforward or I need to take the double quotes out? I read it somewhere that '|"process" ,(having a pipe before the double quote) does not work in fastforward. Thanks and sorry for the confusion. Vahid. |
|
|||
|
"Vahid moghaddasi" <vahid.moghaddasi@gmail.com> writes:
> In sendmail's /etc/aliases, we have: > info : |"/data/bin/MailClient -b info || exit 75" > If a mail is sent to info, the program "MailClient" will process > and send it to mainframe. Can I use the same exact /etc/aliases with > fastforward or I need to take the double quotes out? > I read it somewhere that '|"process" ,(having a pipe before the > double quote) does not work in fastforward. From the fastforward newaliases man page: COMPATIBILITY WARNING: newaliases does not allow a verti cal bar before double quotes. Also noted on pg 248 of _The qmail Handbook_. -- Dave Sill Oak Ridge National Lab, Workstation Support Author, The qmail Handbook <http://web.infoave.net/~dsill> <http://lifewithqmail.org/>: Almost everything you always wanted to know. |
|
|||
|
Dave Sill wrote: > > From the fastforward newaliases man page: > > COMPATIBILITY WARNING: newaliases does not allow a verti > cal bar before double quotes. > > Also noted on pg 248 of _The qmail Handbook_. Yes, that is where I saw it. Would it be OK to put: info : |"/data/bin/MailClient -b info || exit 75" in ~alias/.qmail-info file? Thanks, Vahid. |
|
|||
|
"Vahid moghaddasi" <vahid.moghaddasi@gmail.com> writes:
> Dave Sill wrote: >> >> From the fastforward newaliases man page: >> >> COMPATIBILITY WARNING: newaliases does not allow a verti >> cal bar before double quotes. >> >> Also noted on pg 248 of _The qmail Handbook_. > > Yes, that is where I saw it. > > Would it be OK to put: > info : |"/data/bin/MailClient -b info || exit 75" > in ~alias/.qmail-info file? Sure, but it probably won't do what you want it to do. It's going to look for a file named "/data/bin/MailClient -b info || exit 75" and try to run it, not pass that string to the shell. -- Dave Sill Oak Ridge National Lab, Workstation Support Author, The qmail Handbook <http://web.infoave.net/~dsill> <http://lifewithqmail.org/>: Almost everything you always wanted to know. |
|
|||
|
Dave Sill wrote:
> Sure, but it probably won't do what you want it to do. It's going to > look for a file named "/data/bin/MailClient -b info || exit 75" and > try to run it, not pass that string to the shell. > Is there a way to run the following in dot-qmail? /data/bin/MailClient -b info || exit 75 Would this work: | /data/bin/MailClient -b info || exit 75 or "| /data/bin/MailClient -b info || exit 75" Thanks for the help. Vahid. |
|
|||
|
"Vahid moghaddasi" <vahid.moghaddasi@gmail.com> writes:
> Would this work: > | /data/bin/MailClient -b info || exit 75 Lose the first space and it'll work. -- Dave Sill Oak Ridge National Lab, Workstation Support Author, The qmail Handbook <http://web.infoave.net/~dsill> <http://lifewithqmail.org/>: Almost everything you always wanted to know. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|