TUTORIAL Configuring incrediblepi-3.11 for SMTP Relay

Jos50

New Member
Joined
May 23, 2013
Messages
13
Reaction score
2
Hi
I just install on a Rapberry PI configure the extetion with VM
The VM to eMail is not deliver. I know that I have to put some where the SMTP adress server but I don't find the place.
Can some one show me the place where it is configuer?

Thanks
 
There was an article here that posted some "other" options, but I only used the gmail one (I didn't save the rest):

This config worked on my Pi.

Configuring Exim to use Gmail as SMTP Relay (ignore hyphens below):
  1. Run /root/email-setup:
  2. Choose second option: Mail Sent by SmartHost
  3. System Mail Name: localhost
  4. Listen on: 127.0.0.1
  5. Other Domains: leave blank
  6. Other Machines: leave blank
  7. IP of Outgoing SmartHost: smtp.gmail.com::587 (you must use two colons!)
  8. Hide Local Mail Name: No
  9. Dial on Demand: No
  10. Delivery Method: mbox
  11. Split Config: No
  12. Add Your Gmail Credentials to passwd.client: nano -w /etc/exim4/passwd.client
  13. Entry should look like this: *.google.com:[email protected]:yourpassword
  14. Update Exim by running this command: update-exim4.conf
  15. Restart your mail gateway: service sendmail restart
Exim Cheatsheet:http://nerd.bz/Vru2fe
 
Remember to add Your Gmail Credentials to passwd.client: nano -w /etc/exim4/passwd.client and not p-a-s-s-w-d.client.
 
My voicemails are not getting emailed. This tutorial looks like just what I need but when I try to complete step one outlined above, it says no such file or directory. I also tried running dpkg-reconfigure exim4-config and it said
/usr/sbin/dpkg-reconfigure exim4-config is broken or not fully installed. My pbx is running fine on my raspberry pi other than this. I am running asterisk 1.8.16.0 and freepbx 2.10.1.2. Any help would be appreciated.

Mike
 
I'm not sure which version got certain scripts but what does the command
Code:
ls /root
return?
I did have the email-setup file script there and running it with
Code:
./email-setup
worked.
 
thanks for the quick reply. I was not able to locate the script by executing that command.
 
What about running this?
Code:
find / -name 'email-setup'
 
IP of Outgoing SmartHost: smtp.gmail.com::587 (you must use two colons!)

Furthering the explanation of step 13.

The exim documentation explained my initial issues as Google's smtp.gmail.com is an alias for the real name and this fails to allow authentication to occur...

nslookup for smtp.gmail.com ==>

Non-authoritative answer:
smtp.gmail.com canonical name = gmail-smtp-msa.l.google.com <== real return value found by tail -f mainlog
Name: gmail-smtp-msa.l.google.com
Address: 108.177.12.108
Name: gmail-smtp-msa.l.google.com
Address: 108.177.12.109

thus
*.google.com < == used in passwd.client

http://pkg-exim4.alioth.debian.org/README/exim4-config_files.5.html#/etc/exim4/passwd.client

This goes inevitably wrong if the host name of the mail server is a CNAME (a DNS alias), or the reverse lookup does not fit the forward one.

Currently, you need to manually lookup all reverse DNS names for all IP addresses that your SMTP server host name points to, for example by using the host command. If the SMTP smarthost alias expands to multiple IPs, you need to have multiple lines for all the hosts. When your ISP changes the alias, you will need to manually fix that.

You may minimize this trouble by using a wild card entry or regular expressions, thus reducing the risk of divulging the password to the wrong SMTP server while reducing the number of necessary lines. For a deeper discussion, see the Debian BTS #244724.

password is your SMTP password in clear text. If you do not know about your SMTP password, you can try using your POP3 password as a first guess.

This file must be readable for the Debian-exim user and should not be readable for others. Recommended file mode is root:Debian-exim 640.

# example for CONFDIR/passwd.client
# this will only match if the server’s generic name matches exactly
mail.server.example:user:password
# this will deliver the password to any server
*:username:password
# this will deliver the password to servers whose generic name ends in
# mail.server.example
*.mail.server.example:user:password
# this will deliver the password to servers whose generic name matches
# the regular expression
^smtp[0-9]*.mail.server.example:user:password
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top