How to make cron sent the emails not to the system account

acdomains

Verified User
Joined
May 2, 2007
Messages
14
Hi,

I have Direct Admin running on a Fedora5 machine. The hostname is da.i10.ru.
I have created a user that handles several domains, i.e. domain1.com, domain2.com... the username is system. There is a cron job set up by this user trying to execute some php code. The problem is that the cron output is being sent to system @ da.i10.ru and the only one posible way to check this email is to login through the squirrelmail(IMAP) as system user, but not [email protected].

I am wondering if there's an option to automatically redirect all the system email to the email address specified for the user, or at least redirect it to another local account that allows POP3 mail delivery.

P.S. Trying to setup a catch all email had no good results.

thanks.
 
If it can be retrieved by Squirrelmail then it can be retrieved by any email client. Pop3 doesn't have anything to do with the delivery of email but everything to do with retrieving email. The cron output is being sent to a mailbox and it can be retrieved using either imap (Squirrelmail) or pop3 (Outlook Express). You don't have to change anything on the server. Just starting using a local email client to login and pick up the mail.
 
Floyd, thanks for your fast reply...
the problem is that the user might want not to use an additional email box. It's mosly a usability issue...
BTW, I can't het the emails sent to the system accounts via POP3. I can login to Squirrelmail as the 'system' user, but can't login to Uebimiau.
 
BTW, I can't het the emails sent to the system accounts via POP3.

Then something is wrong with your system. You login with a pop3 client to retrieve the email exactly the same way as Squirrelmail. Maybe you don't have a pop3 server running on the server. Is any pop3 mail working?

But if you don't care about fixing that then just forward the system user email to another email account. You may have to first create the email account you want to forward to to.
 
I can login to Squirrelmail as user : password, but not as user@domain : password.

All the non-system email accounts can be checked via POP3, Squirrelmail and Uebimiau mail.
 
Last edited:
With system users you would not use the @domain.com for the username to check email, whether it is pop3 or imap.
 
to get back on track; the cronjob can call a script. The script can write the job output to a file, and then call the mail command to send the file to any user.

Jeff
 
I am trying this script so that it automatically sends me every day the emails that are sent from the server and within a specific DirectAdmin user.

I am trying it with eximstats but I have not been successful.
Has anyone ever made a user-level script in DirectAdmin like the one I want to create?
 
Back
Top