fastforward or ~alias/.qmail-

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 ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-21-2005
Vahid moghaddasi
 
Posts: n/a
Default fastforward or ~alias/.qmail-

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.

Reply With Quote
  #2 (permalink)  
Old 06-22-2005
AK
 
Posts: n/a
Default Re: fastforward or ~alias/.qmail-

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
Reply With Quote
  #3 (permalink)  
Old 06-22-2005
Vahid moghaddasi
 
Posts: n/a
Default Re: fastforward or ~alias/.qmail-



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.

Reply With Quote
  #4 (permalink)  
Old 06-23-2005
AK
 
Posts: n/a
Default Re: fastforward or ~alias/.qmail-

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
Reply With Quote
  #5 (permalink)  
Old 06-23-2005
Vahid moghaddasi
 
Posts: n/a
Default Re: fastforward or ~alias/.qmail-



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.

Reply With Quote
  #6 (permalink)  
Old 06-23-2005
Dave Sill
 
Posts: n/a
Default Re: fastforward or ~alias/.qmail-

"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.
Reply With Quote
  #7 (permalink)  
Old 06-23-2005
Vahid moghaddasi
 
Posts: n/a
Default Re: fastforward or ~alias/.qmail-



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.

Reply With Quote
  #8 (permalink)  
Old 06-27-2005
Dave Sill
 
Posts: n/a
Default Re: fastforward or ~alias/.qmail-

"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.
Reply With Quote
  #9 (permalink)  
Old 06-27-2005
Vahid moghaddasi
 
Posts: n/a
Default Re: fastforward or ~alias/.qmail-

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.

Reply With Quote
  #10 (permalink)  
Old 06-27-2005
Dave Sill
 
Posts: n/a
Default Re: fastforward or ~alias/.qmail-

"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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:47 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0