TUTORIAL Install gMail as SMTP Relay Host for SendMail

Discussion in 'PIAF 3 Add-Ons' started by wardmundy, Mar 16, 2008.

  1. biggy213

    biggy213 New Member

    Joined:
    Jan 5, 2009
    Messages:
    4
    Likes Received:
    0
    I followed the instruction but no joy. I am not getting any mail from Incredible PBX-FAX 13-12.2 for SL 6.7? Any suggestions?
     
  2. ostridge

    ostridge Guru

    Joined:
    Jan 22, 2015
    Messages:
    336
    Likes Received:
    56
    This code was needed because the 'sendmail-cf' directory is missing on these Debian/Ubuntu as sendmail/cf directory was used ; however
    The 1st sed code line has a delimiter missing - substitute the following line and you're good:
    Code:
    sed -i 's|sendmail-cf|sendmail\/cf|' /etc/mail/sendmail.mc
    
     
    wardmundy likes this.
  3. boilermanc

    boilermanc New Member

    Joined:
    Jul 7, 2011
    Messages:
    29
    Likes Received:
    2
    i get an error when entering both the makemap lines:

    -bash: makemap: command not found

     
  4. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    14,286
    Likes Received:
    2,431
  5. ostridge

    ostridge Guru

    Joined:
    Jan 22, 2015
    Messages:
    336
    Likes Received:
    56
    that also could be to do with permissions (chmod 640 ...) for the files referred to?
    genericstable genericstable.db client-info client-info.db


    makemap -r hash client-info.db < client-info
     
    wardmundy likes this.
  6. boilermanc

    boilermanc New Member

    Joined:
    Jul 7, 2011
    Messages:
    29
    Likes Received:
    2
    Thanks ward, i had to do a apt-get update and then reinstall sendmail. that got me back on track. i now find there is a file:

    sendmail.mc.gmail

    how does that play into the setup now?
     
  7. rogerjbos

    rogerjbos Member

    Joined:
    Mar 27, 2015
    Messages:
    46
    Likes Received:
    5
    Make sure and check your ports if you are on the cloud...

    I had a working setup for testing, and then I went to deploy it a few months later, the emails had stopped working. I spent many hours trying to fix it by going through many tutorials before I went to the cloud provider and asked them if they were blocking port 587. They were. Once they opened it everything worked great, but it wasted a lot of my time... lesson learned.
     

Share This Page