1

Topic: Mail command

Hello,

I'm trying to make a script using mail command (to send logfile after backup)

On all systems I've ever made, mail command works when I installed mailx or mailutils.

I installed mailutils on a iRedmail server, and this command doesn't work.

What change in this server ?

Thanks smile

2

Re: Mail command

I have try to use mutt sent a attachment.

apt-get install mutt zip
cd /etc/openvpn/easy-rsa/2.0/keys
zip config.zip client.ovpn ca.crt
mutt -s "OpenVPN client config files" www@example.com -a /etc/openvpn/easy-rsa/2.0/keys/config.zip < /usr/share/doc/openvpn/README

3

Re: Mail command

I'll try it.

Thanks a lot smile

4

Re: Mail command

It works fine with mutt :

- to install mutt : apt-get install mutt (for my ubuntu server 10.04.1)

- syntax : mutt -s "Subject" mailadress@tosend.themail < /path/of/the/log

Thanks shake wink