[qmailtoaster] root / daemon system generated mail forwarding

2014-02-16 Thread Wicus Roets
To forward system generated mail to a qmail account, is it a requirement to
first create a similar vpop account prior to forwarding ?

 

***Note - Mail  DNS is hosted on the machine.

 

Under /var/qmail/alias I created the following files:

 

.qmail-anonymous

.qmail-mailer-daemon

.qmail-postmaster

.qmail-root

 

which all has one entry pointing to a valid vpopmail account. i.e

 

 mailto:j...@server.com j...@server.com

 

/var/qmail/control/me reads

 

ns.server.com

 

#hostname -fqdn

 

ns.server.com

 

However, it doesn't seem to work correctly as per the following example:

 

 

Received: (qmail 2725 invoked for bounce); 16 Feb 2014 23:25:01 -

Date: 16 Feb 2014 23:25:01 -

From: mailer-dae...@ns.server.com

To: postmas...@ns.server.com

Subject: failure notice

 

Hi. This is the qmail-send program at ns.server.com.

I tried to deliver a bounce message to this address, but the bounce bounced!

 

r...@server.com:

Sorry, no mailbox here by that name. (#5.1.1)

 

--- Below this line is the original bounce.

 

Return-Path: 

Received: (qmail 2704 invoked for bounce); 16 Feb 2014 23:25:01 -

Date: 16 Feb 2014 23:25:01 -

From: mailer-dae...@ns.server.com

To: r...@server.com

Subject: failure notice

 

Hi. This is the qmail-send program at ns.server.com

I'm afraid I wasn't able to deliver your message to the following addresses.

This is a permanent error; I've given up. Sorry it didn't work out.

 

r...@server.com:

Sorry, no mailbox here by that name. (#5.1.1)

 

--- Below this line is a copy of the message.

 

Return-Path: r...@server.com

Received: (qmail 2700 invoked by uid 0); 16 Feb 2014 23:25:01 -

Date: 16 Feb 2014 23:25:01 -

Message-ID: 20140216232501.2698.qm...@ns.server.com

From: r...@server.com (Cron Daemon)

To: r...@server.com

Subject: Cron root@ns /usr/sbin/clamav-unofficial-sigs.sh -c
/etc/clamav-unofficial-sigs.conf

Content-Type: text/plain; charset=UTF-8

Auto-Submitted: auto-generated

X-Cron-Env: LANG=en_US.UTF-8

X-Cron-Env: SHELL=/bin/sh

X-Cron-Env: HOME=/root

X-Cron-Env: PATH=/usr/bin:/bin

X-Cron-Env: LOGNAME=root

X-Cron-Env: USER=root

 

/bin/sh: /usr/sbin/clamav-unofficial-sigs.sh: No such file or directory

 

 

 

 



Re: [qmailtoaster] root / daemon system generated mail forwarding

2014-02-16 Thread Eric Broch
Use '/home/vpopmail/bin/valias'


On 2/16/2014 4:48 PM, Wicus Roets wrote:

 To forward system generated mail to a qmail account, is it a
 requirement to first create a similar vpop account prior to forwarding ?

  

 ***Note - Mail  DNS is hosted on the machine.

  

 Under /var/qmail/alias I created the following files:

  

 .qmail-anonymous

 .qmail-mailer-daemon

 .qmail-postmaster

 .qmail-root

  

 which all has one entry pointing to a valid vpopmail account. i.e

  

 j...@server.com mailto:j...@server.com

  

 /var/qmail/control/me reads

  

 ns.server.com

  

 #hostname --fqdn

  

 ns.server.com

  

 However, it doesn't seem to work correctly as per the following example:

  

  

 Received: (qmail 2725 invoked for bounce); 16 Feb 2014 23:25:01 -

 Date: 16 Feb 2014 23:25:01 -

 From: mailer-dae...@ns.server.com

 To: postmas...@ns.server.com

 Subject: failure notice

  

 Hi. This is the qmail-send program at ns.server.com.

 I tried to deliver a bounce message to this address, but the bounce
 bounced!

  

 r...@server.com:

 Sorry, no mailbox here by that name. (#5.1.1)

  

 --- Below this line is the original bounce.

  

 Return-Path: 

 Received: (qmail 2704 invoked for bounce); 16 Feb 2014 23:25:01 -

 Date: 16 Feb 2014 23:25:01 -

 From: mailer-dae...@ns.server.com

 To: r...@server.com

 Subject: failure notice

  

 Hi. This is the qmail-send program at ns.server.com

 I'm afraid I wasn't able to deliver your message to the following
 addresses.

 This is a permanent error; I've given up. Sorry it didn't work out.

  

 r...@server.com:

 Sorry, no mailbox here by that name. (#5.1.1)

  

 --- Below this line is a copy of the message.

  

 Return-Path: r...@server.com

 Received: (qmail 2700 invoked by uid 0); 16 Feb 2014 23:25:01 -

 Date: 16 Feb 2014 23:25:01 -

 Message-ID: 20140216232501.2698.qm...@ns.server.com

 From: r...@server.com (Cron Daemon)

 To: r...@server.com

 Subject: Cron root@ns /usr/sbin/clamav-unofficial-sigs.sh -c
 /etc/clamav-unofficial-sigs.conf

 Content-Type: text/plain; charset=UTF-8

 Auto-Submitted: auto-generated

 X-Cron-Env: LANG=en_US.UTF-8

 X-Cron-Env: SHELL=/bin/sh

 X-Cron-Env: HOME=/root

 X-Cron-Env: PATH=/usr/bin:/bin

 X-Cron-Env: LOGNAME=root

 X-Cron-Env: USER=root

  

 /bin/sh: /usr/sbin/clamav-unofficial-sigs.sh: No such file or directory