Hi Juan

You can using postfix with smtp

i send you exemple with gmail :

First things first, let’s get the necessary packages installed.

sudo apt-get install postfix mailutils libsasl2-2 ca-certificates
libsasl2-modules
During the install the Postfix wizard will ask for a couple selections. The
first will be the server type and for this one just select an Internet
Site. The selection will ask you to enter a FQDN. If you are using the
server to host your own domain or have your own domain simply enter your
domain name like example.com.

Configure Postfix

Next you will edit the Postfix config file as such:

sudo nano /etc/postfix/main.cf
At the bottom of the file add the following lines:

relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
Hit Ctrl-X to exit and Y to save the file.

Next we will create a file containing our Gmail username and password so
that Postfix can connect:

Create a new file:

sudo nano /etc/postfix/sasl_passwd
and add the following line (NOTE: If you use Google Apps to host your
domain/email, replace gmail.com below with your domain name):

[smtp.gmail.com]:587  [email protected]:YOURPASSWORD
Hit Ctrl-X to exit and Y to save the file.

Set the permissions and update the Postfix configuration to use the
password file:

sudo chmod 400 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
You are almost there. The second to last step will validate the
certificates using the following command:

cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem | sudo tee -a
/etc/postfix/cacert.pem
Finally, let’s reload Postfix to utilize the changes we have made:

sudo /etc/init.d/postfix reload
That’s all there is to it. Let’s test our configuration to make sure
everything is running right:

echo "Testing Postfix to relay mail through Gmail SMTP" | mail -s "Postfix
Testing" [email protected]
Check your email using your normal method and you should see the above
message. To ensure everything functioned properly you can also check your
sent mail to see the above message was sent using your Gmail account (or
Google Apps hosted mail account).


Aurélien Husson
AdminSys PHS
http://www.phsvietnam.com
HaNoi (Viet Nam)

2014-09-30 19:12 GMT+07:00 <[email protected]>:

> Hello. I am running Gitlab 7 via the virtual machine provided by Nitnami
> (Ubuntu Server 12.04). I want gitlab to send emails with new accounts
> activation data, and other events too. I set my SMTP server FQDN, port,
> user and pass, renamed the file, and restarted gitlab (the whole machine
> in deed). Now, after signing up, I see a message telling me to wait for an
> email, but it never comes. I am new to gitlab, so I have a poor idea about
> where the logs or other configs end up in the filesystem. Can someone
> provide a light on this? Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "GitLab" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gitlabhq/5b81e81a65b7d208df7d542c8e75eb5e.squirrel%40webmail.reduc.edu.cu
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/CADeYBSfB%2BDK3wxsKuJVxY8vZbEzt3MwXpNT_S33NnD6_1TGH1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to