FYI Help I Installed wrong gMail tutorial for SendMail

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,636
Reaction score
523
I followed the Tutorial here http://www.pbxinaflash.com/communit...ll-gmail-as-smtp-relay-host-for-sendmail.974/
should have noticed its for "PBX in a Flash systems only" :oops:

Install gMail as SMTP Relay Host for SendMail" BUT wrong platform = Incrediblepbx

The following shows the result from the 'make' command and the restart.
Please advise howto proceedto get out of that one?

Code:
root@pi2:/etc/mail# make
Updating databases ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Could not open /usr/share/sendmail-cf/m4/cf.m4(No such file or directory)
Updating Makefile ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/Makefile...
Updating sendmail.cf ...
m4:/etc/mail/sendmail.mc:10: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory
The following file(s) have changed:
  /etc/mail/sendmail.cf
** ** You should issue `/etc/init.d/sendmail reload` ** **
root@pi2:/etc/mail# service sendmail restart^C
root@pi2:/etc/mail# /etc/init.d/sendmail reload
[....] Reloading Mail Transport Agent (MTA): sendmailMakefile:361: warning: overriding recipe for target '/etc/aliases.db'
Makefile:358: warning: ignoring old recipe for target '/etc/aliases.db'
Makefile:419: warning: overriding recipe for target '/etc/aliases'
Makefile:358: warning: ignoring old recipe for target '/etc/aliases'
make: *** No rule to make target '/usr/share/sendmail-cf/m4/cf.m4', needed by '/etc/mail/databases'.  Stop.
. ok

Sorry to be a pain - help appreciated.
 

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,636
Reaction score
523
Thanks for the reply I take it I should run thro the revised code again from start.
I presume the wget is the same download or is that moddified.

Thanks will give it a run.
 

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,636
Reaction score
523
Hi Ward I have re-done the commands in your first post of the thread the as I referenced earlier to day http://www.pbxinaflash.com/community/index.php?threads/install-gmail-as-smtp-relay-host-for-sendmail.974/
I still get the make errors. Query perhaps I am re-using the unmodified code - if so where is the modified code for INCREDIBLEpbx?
Thanks
Code:
root@pi2:/etc/mail# make
Makefile:361: warning: overriding recipe for target '/etc/aliases.db'
Makefile:358: warning: ignoring old recipe for target '/etc/aliases.db'
Makefile:419: warning: overriding recipe for target '/etc/aliases'
Makefile:358: warning: ignoring old recipe for target '/etc/aliases'
make: *** No rule to make target '/usr/share/sendmail-cf/m4/cf.m4', needed by '/etc/mail/databases'.  Stop.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,206
Reaction score
5,229
The last four lines are new:
Code:
cd ..
yum -y install sendmail-cf
make
service sendmail restart
 

Dr. Kupka

New Member
Joined
Jul 3, 2013
Messages
22
Reaction score
7
I struggled with the same error:
Code:
Could not open /usr/share/sendmail-cf/m4/cf.m4(No such file or directory)
"Make" expects the non-existing folder /usr/share/sendmail-cf instead of the existing folder /usr/share/sendmail/cf
To solve this run the following commands before "make":
Code:
mkdir /usr/share/sendmail-cf/
chmod 755 /usr/share/sendmail-cf/
mount --bind /usr/share/sendmail/cf /usr/share/sendmail-cf/
Adjust your /etc/fstab to make the mount permanent:
Code:
echo "/usr/share/sendmail/cf/ /usr/share/sendmail-cf none bind 0 0" >> /etc/fstab
 

Members online

No members online now.

Forum statistics

Threads
25,825
Messages
167,857
Members
19,250
Latest member
mark-curtis
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.
Top