Free ftp server space for zoneminder events video upload

Forum for questions and support relating to the 1.25.x releases only.
Locked
vinodtcr
Posts: 18
Joined: Fri Feb 25, 2011 2:37 pm
Location: India

Free ftp server space for zoneminder events video upload

Post by vinodtcr »

Please suggest any good free online ftp storage for zoneminder events upload. Can I configure SMTP for uploads to gmail with video attachments?
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Free ftp server space for zoneminder events video upload

Post by PacoLM »

Hi,

I used to have a free FTP server to upload the events, but the upload speed was slow and the space didn't fit my requeriments, so I decided to open a Gmail account to upload the events. Works perfect with postfix after some tuning. The only complain I have is that sometimes Gmail decides to lock temporary the access to account when there's a lot of emailing from my Zoneminder system, but after some hours I could access normally.

Hope it helps,

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
vinodtcr
Posts: 18
Joined: Fri Feb 25, 2011 2:37 pm
Location: India

Re: Free ftp server space for zoneminder events video upload

Post by vinodtcr »

I'm also experience the same lockout issue with gmail postfix relay. I'm using centos 5.9 and zoneminder 1.25. I could successfully send the test mails
but after some time I'm getting the error:

Mar 22 13:33:22 MYSERVER sendmail[4516]: r2M4HQFx020433: to=<cctv@gmail.com>, ctladdr=<root@localhost.localdomain> (0/0), delay=03:45:56, xdelay=00:00:00, mailer=esmtp, pri=570366, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.

Please help.

I followed the configuration given below. My centos version is 5.9.


For Centos 5.3

Verify package installed

# rpm -qa |grep postfix
postfix-2.3.3-2.1.el5_2

# rpm -qa |grep sasl
cyrus-sasl-lib-2.1.22-5.el5
cyrus-sasl-2.1.22-5.el5
cyrus-sasl-plain-2.1.22-5.el5

# rpm -qa |grep openssl
openssl-perl-0.9.8e-12.el5_4.1
openssl-devel-0.9.8e-12.el5_4.1
xmlsec1-openssl-1.2.9-8.1.1
openssl-0.9.8e-12.el5_4.1
openssl097a-0.9.7a-9.el5_2.1

Copy root CA certificates. Postfix needs to know the location of root CA.

# cp /etc/pki/tls/certs/ca-bundle.crt /etc/postfix/cacert.pem

Create file that stores GMAIL user and password.

# vi /etc/postfix/sasl_passwd

smtp.gmail.com user@domain:password

#postmap /etc/postfix/sasl_passwd


Edit /etc/postfix/main.cf

# Relay all e-mail via GMail.
relayhost = [smtp.gmail.com]:587

# SASL authentication
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_sasl_tls_security_options = noanonymous
smtp_sasl_mechanism_filter = login

# TLS
smtp_tls_eccert_file =
smtp_tls_eckey_file =
smtp_use_tls = yes
smtp_enforce_tls = no
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_received_header = yes
tls_random_source = dev:/dev/urandom


Finally, restart postfix.
Locked