Re: /.qmail files
"Kelly Prophet" [EMAIL PROTECTED] wrote: So, basically what I am asking is if anyone is aware of a way to pipe incoming email for a specified user to a location on the server. In this case, a CGI-script. How about, in the appropriate .qmail file: |/path/to/cgi-script -Dave
Re: .qmail files with vpopmail/sqwebmail
* [EMAIL PROTECTED] [EMAIL PROTECTED] [001216 12:56]: Hi all I have installed qmail / vpopmail / vqsignup / sqwebmail I have and account in the dir /home/vpopmail/domains/metta.lk/"name-of-account" This is probably more suited for the vpopmail mailing list. Send an e-mail to [EMAIL PROTECTED] to subscribe. I want to keep a copy in the Maildir of "name-of-account" and want to forward a copy of the mail to another account In qmail I would generate a file /home/vpopmail/domains/metta.lk/name-of-account/.qmail Try putting the directions in /home/vpopmail/domains/metta.lk/.qmail-name-of-account instead, since... - # copy of mail in Maildir ./Maildir/ # copy of mail to Mr abc [EMAIL PROTECTED] ...vpopmail .qmail files in a user's directory only support local delivery. The ``'' line will probably not work here... but this does not seem to work that way with vpopmail This could, of course, be more descriptive. How does it fail? What Do The Logs Say? /pg -- Peter Green : Gospel Communications Network, SysAdmin : [EMAIL PROTECTED] --- We can use symlinks of course... syslogd would be a symlink to syslogp and ftpd and ircd would be linked to ftpp and ircp... and of course the point-to-point protocal paenguin. (Kevin M. Bealer, commenting on the penguin Linux logo.)
Re: .qmail files
.qmail-unsubscribe should be owned by user alias and should contain one line: clifmail and in the clifmail home directory, there should be a .qmail file with ./Mailbox as its contents. and Mailbox should not be readable by anyone but user clifmail (600)
Re: .qmail files
clifford thurber [EMAIL PROTECTED] wrote: Under /var/qmail/alias I have a file a file called .qmail-unsubscribe. The file contains one line of text wich says: /home/clifmail/Mailbox Deliveries to .qmail files under ~alias are done as user "alias". User alias can't write to /home/clifmail/Mailbox. If you check your logs, you should a warning to that effect. You should also see bounces in ~alias/Mailbox. -Dave
Re: .qmail files - shell syntax?
Robin Bowes [EMAIL PROTECTED] writes: | How is the shell used by .qmail files determined? Hardcoded as /bin/sh. % grep /bin/sh *.c qmail-local.c: args[0] = "/bin/sh"; args[1] = "-c"; args[2] = prog; args[3] = 0; qmail-local.c: strerr_die3x(111,"Unable to run /bin/sh: ",error_str(errno),". (#4.3.0)"); | The reason I ask is that I was using { } brackets to group commands, eg: | | { echo "To: [EMAIL PROTECTED]"; cat - } | qmail-inject You need a ";" before the "}".
Re: .qmail files - shell syntax?
On Fri, 19 Mar 1999, Robin Bowes wrote: How is the shell used by .qmail files determined? Use the source, Luke. ;-) --- extract from qmail-local.c - START switch(child = fork()) { case -1: temp_fork(); case 0: args[0] = "/bin/sh"; args[1] = "-c"; args[2] = prog; args[3] = 0; sig_pipedefault(); execv(*args,args); strerr_die3x(111,"Unable to run /bin/sh: ",error_str(errno),". (#4.3.0)"); } --- extract from qmail-local.c - END Hardcoded, in other words. Not too difficult to change though.. :-) Thanks, R. / Joel Eriksson
Re: .qmail files - shell syntax?
On 19 Mar 1999, Scott Schwartz wrote: Robin Bowes [EMAIL PROTECTED] writes: | How is the shell used by .qmail files determined? Hardcoded as /bin/sh. % grep /bin/sh *.c qmail-local.c: args[0] = "/bin/sh"; args[1] = "-c"; args[2] = prog; args[3] = 0; qmail-local.c: strerr_die3x(111,"Unable to run /bin/sh: ",error_str(errno),". (#4.3.0)"); | The reason I ask is that I was using { } brackets to group commands, eg: | | { echo "To: [EMAIL PROTECTED]"; cat - } | qmail-inject You need a ";" before the "}". Huh? [root@hades ~]# /bin/sh -c '{ echo foo; echo bar }' foo bar No trailing ; needed..? / Joel Eriksson
Re: .qmail files - shell syntax?
- Joel Eriksson [EMAIL PROTECTED]: | You need a ";" before the "}". | | Huh? | | [root@hades ~]# /bin/sh -c '{ echo foo; echo bar }' | foo | bar | | No trailing ; needed..? Lesson one in portable computing: That something works in one environment does not prove it works in another. The above fails on at least one FreeBSD and one HP-UX machine in my neighbourhood. I'm not inclined to try testing it on the dozen or so architectures available to me... - Harald
Re: .qmail files - shell syntax?
Joel Eriksson [EMAIL PROTECTED] writes: | You need a ";" before the "}". | | Huh? Yes. That's how the Bourne shell works. | [root@hades ~]# /bin/sh -c '{ echo foo; echo bar }' | foo | bar | | No trailing ; needed..? That's a nonstandard feature of whatever shell you've got installed as /bin/sh.
Re: .qmail files - shell syntax?
On Fri 1999-03-19 (17:04), Scott Schwartz wrote: Joel Eriksson [EMAIL PROTECTED] writes: | You need a ";" before the "}". | | Huh? Yes. That's how the Bourne shell works. | [root@hades ~]# /bin/sh -c '{ echo foo; echo bar }' | foo | bar | | No trailing ; needed..? That's a nonstandard feature of whatever shell you've got installed as /bin/sh. Most likely a Linux system where sh is really bash. [keith@dagobah gaa]$ which sh /bin/sh [keith@dagobah gaa]$ ls -al /bin/sh lrwxrwxrwx 1 root root4 Nov 27 20:35 /bin/sh - bash [keith@dagobah gaa]$ But even the bash appears to be non-standard though since bash on FreeBSD doesn't like the syntax either. Oh well. Better to stick to the standard. -- Keith -- Keith Burdis - MSc (Com Sci) - Rhodes University, South Africa Email : [EMAIL PROTECTED] WWW : http://www.rucus.ru.ac.za/~keith/ IRC : Panthras JAPH "Any technology sufficiently advanced is indistinguishable from a perl script" Standard disclaimer. ---
Re: .qmail files - shell syntax?
On 19 Mar 1999, Scott Schwartz wrote: Joel Eriksson [EMAIL PROTECTED] writes: | [root@hades ~]# /bin/sh -c '{ echo foo; echo bar }' | foo | bar | | No trailing ; needed..? That's a nonstandard feature of whatever shell you've got installed as /bin/sh. Doh! [root@hades ~]# ls -l /bin/sh lrwxrwxrwx 1 root root4 Aug 13 1998 /bin/sh - bash Sorry 'bout that.. / Joel Eriksson
Re: .qmail files
On Tue, Feb 23, 1999 at 01:22:27PM +0100, Victor Regner wrote: I wanna make a one way mailing list. Do I have to install majordomo or exmlm or can I just put a line in the .qmail file so that I am the only one that can send mail to it? Put |bouncesaying "You cannot post to this lis" [ "$SENDER"="[EMAIL PROTECTED]" ] as the first line in the .qmail file, and then list the names you want the messages sent to. -- --- Mate Wierdl | Dept. of Math. Sciences | University of Memphis