Jump to content
XPEnology Community

mailx on xpenlology 4.3


jsg

Recommended Posts

Hi,

I'm pretty new to xpenology. I've so far got ssh set up, and am attempting to set up some rsync cron jobs to do various tasks like backing up etc.

 

I am migrating from a readynas, and on that system there was a command line tool (mailx) which I could use to send me email notifications of completed jobs.

 

Is there any way to get this on xpenology? I don't see it in ipkg

 

Many Thanks

J

Link to comment
Share on other sites

Thanks, that worked

 

For anyone interested, here's how I set up to use my gmail account to send email from the command line.

 

ipkg install nail

 

Then set up the config file

nano /opt/etc/nail.rc

to use gmail by adding the following lines.

#configure Gmail SMTP

set smtp-use-starttls

set from=MYNAME@gmail.com

set smtp=smtp.gmail.com:587

set smtp-auth-user=MYNAME@gmail.com

set auth-login=MYNAME@gmail.com

set smtp-auth-password=MYPASSWORD

set ssl-ca-file=/opt/etc/certs/Equifax_Secure_Certificate_Authority.crt

 

The last line specifies the signing certificate used to verify the gmail domain.

I created the file /opt/etc/certs/Equifax_Secure_Certificate_Authority.crt

And pasted in the following text which I got from http://www.geotrust.com/resources/root_certificates/index.asp

 

 

-----BEGIN CERTIFICATE-----
MIIDIDCCAomgAwIBAgIENd70zzANBgkqhkiG9w0BAQUFADBOMQswCQYDVQQGEwJV
UzEQMA4GA1UEChMHRXF1aWZheDEtMCsGA1UECxMkRXF1aWZheCBTZWN1cmUgQ2Vy
dGlmaWNhdGUgQXV0aG9yaXR5MB4XDTk4MDgyMjE2NDE1MVoXDTE4MDgyMjE2NDE1
MVowTjELMAkGA1UEBhMCVVMxEDAOBgNVBAoTB0VxdWlmYXgxLTArBgNVBAsTJEVx
dWlmYXggU2VjdXJlIENlcnRpZmljYXRlIEF1dGhvcml0eTCBnzANBgkqhkiG9w0B
AQEFAAOBjQAwgYkCgYEAwV2xWGcIYu6gmi0fCG2RFGiYCh7+2gRvE4RiIcPRfM6f
BeC4AfBONOziipUEZKzxa1NfBbPLZ4C/QgKO/t0BCezhABRP/PvwDN1Dulsr4R+A
cJkVV5MW8Q+XarfCaCMczE1ZMK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