I also discovered that nbsmtp wasn't reading my /etc/nbsmtprc file. I looked at the nbsmtprc source a bit and found this block of code at line 67 of fileconfig.c:
asprintf(&local_tmp_buf,"%s/nbsmtprc",SYSCONFDIR);
I'm not really sure what defines SYSCONFDIR, but a little bit of searching uncovered a few suspicious lines in the configure file:
bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc'
If ${prefix} is empty then datadir=/share, but if ${prefix} is "/usr", then sysconfdir=/usr/etc. It seems like the latter case is what is happening.
Hopefully someone who knows a little bit more about Linux applications and package building can translate this information into a fix.
I also discovered that nbsmtp wasn't reading my /etc/nbsmtprc file. I looked at the nbsmtprc source a bit and found this block of code at line 67 of fileconfig.c:
asprintf( &local_ tmp_buf, "%s/nbsmtprc" ,SYSCONFDIR) ;
I'm not really sure what defines SYSCONFDIR, but a little bit of searching uncovered a few suspicious lines in the configure file:
bindir= '${exec_ prefix} /bin' '${exec_ prefix} /sbin' '${exec_ prefix} /libexec' '${prefix} /share' '${prefix} /etc'
sbindir=
libexecdir=
datadir=
sysconfdir=
If ${prefix} is empty then datadir=/share, but if ${prefix} is "/usr", then sysconfdir= /usr/etc. It seems like the latter case is what is happening.
Hopefully someone who knows a little bit more about Linux applications and package building can translate this information into a fix.