| View previous topic :: View next topic |
| Author |
Message |
rorsten n00b

Joined: 05 May 2004 Posts: 7
|
Posted: Thu Jun 24, 2004 2:04 am Post subject: missing patch for net-mail/qmail -> SPF support! |
|
|
| I was just wondering why this patch isn't included in the qmail ebuilds. It'd be pretty sweet to have SPF support. |
|
| Back to top |
|
 |
xkb n00b

Joined: 13 Jun 2002 Posts: 20 Location: Netherlands
|
Posted: Sun Jul 18, 2004 11:22 am Post subject: |
|
|
| Hear, hear! If we want to fight spam we better promote this. |
|
| Back to top |
|
 |
Mindstab Apprentice


Joined: 02 Jan 2003 Posts: 271 Location: Vancouver, Canada
|
Posted: Fri Jul 23, 2004 5:20 pm Post subject: |
|
|
| theres an ebuild in bugzilla sitting there but its not in portage and I too would love to see it there |
|
| Back to top |
|
 |
Liquid Crystal Tux's lil' helper


Joined: 06 Nov 2003 Posts: 77
|
Posted: Mon Jun 13, 2005 10:49 am Post subject: |
|
|
Is the patch included in the portage ebuild now? How can I check that?
We would love to have SPF with qmail in gentoo with a simple emerge  _________________ Making *nix user friendly is easier than debugging Windoz
Tuxntosh web site The *nix Graphics Web Site (Warning! Not for M$ Windowz users!) |
|
| Back to top |
|
 |
kallamej Administrator


Joined: 27 Jun 2003 Posts: 4785 Location: Gothenburg, Sweden
|
Posted: Mon Jun 13, 2005 11:47 am Post subject: |
|
|
You have to use the package.masked -r16 qmail ebuild. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net |
|
| Back to top |
|
 |
Liquid Crystal Tux's lil' helper


Joined: 06 Nov 2003 Posts: 77
|
Posted: Sat Jun 25, 2005 3:50 pm Post subject: |
|
|
| kallamej wrote: | | You have to use the package.masked -r16 qmail ebuild. |
Does it require any USE flags to ensure spf patch is applied or just a normal emerge will do the job?
I'll try it tonight and see... _________________ Making *nix user friendly is easier than debugging Windoz
Tuxntosh web site The *nix Graphics Web Site (Warning! Not for M$ Windowz users!) |
|
| Back to top |
|
 |
kallamej Administrator


Joined: 27 Jun 2003 Posts: 4785 Location: Gothenburg, Sweden
|
Posted: Sat Jun 25, 2005 7:22 pm Post subject: |
|
|
| Liquid Crystal wrote: | | Does it require any USE flags to ensure spf patch is applied or just a normal emerge will do the job? |
The patch linked above is not used. Instead, you can get spf as a plugin for the spp framework which is implemented in the -r16 ebuild. As far as I know, you have to install the plugin separately, though. Also note that -r16 is no longer hard masked, but in ~arch. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net |
|
| Back to top |
|
 |
Liquid Crystal Tux's lil' helper


Joined: 06 Nov 2003 Posts: 77
|
Posted: Sun Jun 26, 2005 7:23 am Post subject: |
|
|
| kallamej wrote: | | the spp framework which is implemented in the -r16 ebuild. As far as I know, you have to install the plugin separately, though. Also note that -r16 is no longer hard masked, but in ~arch. |
You mean the -r16 ebuild is "ready" to install any of the spp framework plugins? _________________ Making *nix user friendly is easier than debugging Windoz
Tuxntosh web site The *nix Graphics Web Site (Warning! Not for M$ Windowz users!) |
|
| Back to top |
|
 |
kallamej Administrator


Joined: 27 Jun 2003 Posts: 4785 Location: Gothenburg, Sweden
|
Posted: Sun Jun 26, 2005 9:11 am Post subject: |
|
|
Yes, that's my understanding. Install the plugin yourself and uncomment (or add) the relevant line to /var/qmail/control/smtpplugins. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net |
|
| Back to top |
|
 |
Liquid Crystal Tux's lil' helper


Joined: 06 Nov 2003 Posts: 77
|
Posted: Tue Jun 28, 2005 11:51 am Post subject: |
|
|
Can someone please help me with this?!
According to http://qmail-spp.sourceforge.net/plugins/details/?id=14
I should compile this plugin with "gcc -o spf ./spf.c -lspf", I really have no idea what to do!
sorry but I'm still a newbie  _________________ Making *nix user friendly is easier than debugging Windoz
Tuxntosh web site The *nix Graphics Web Site (Warning! Not for M$ Windowz users!) |
|
| Back to top |
|
 |
kallamej Administrator


Joined: 27 Jun 2003 Posts: 4785 Location: Gothenburg, Sweden
|
Posted: Tue Jun 28, 2005 1:32 pm Post subject: |
|
|
The first step would be to emerge libspf. There is also libspf2, but libspf is the one mentioned on the qmail-spp page. Then you save the plugin file (spf.c) to a directory of your choice, cd into it and run the command you listed. Optionally, you can add your CFLAGS to the command. Then mkdir /var/qmail/plugins and copy the newly created executable spf to that directory. Its permissions should probably be 755 and root:root or root:qmail owned. Finally uncomment the spf line in /var/qmail/control/smtpplugins. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net |
|
| Back to top |
|
 |
Liquid Crystal Tux's lil' helper


Joined: 06 Nov 2003 Posts: 77
|
Posted: Tue Jun 28, 2005 5:33 pm Post subject: |
|
|
Unfortunately this is what I got
| Code: |
# gcc -o spf ./spf.c -lspf
spf.c:23:21: spf/spf.h: No such file or directory
spf.c: In function `main':
spf.c:35: error: `peer_info_t' undeclared (first use in this function)
spf.c:35: error: (Each undeclared identifier is reported only once
spf.c:35: error: for each function it appears in.)
spf.c:35: error: `peer_info' undeclared (first use in this function)
spf.c:73: error: `SPF_PASS' undeclared (first use in this function)
spf.c:75: error: `SPF_H_FAIL' undeclared (first use in this function)
spf.c:78: error: `SPF_S_FAIL' undeclared (first use in this function)
spf.c:81: error: `SPF_NEUTRAL' undeclared (first use in this function)
spf.c:84: error: `SPF_NONE' undeclared (first use in this function)
spf.c:87: error: `SPF_ERROR' undeclared (first use in this function)
spf.c:90: error: `SPF_UNKNOWN' undeclared (first use in this function)
spf.c:93: error: `SPF_UNMECH' undeclared (first use in this function)
spf.c:98: warning: assignment makes pointer from integer without a cast
|
These are my CFLAGS; "-O2 -march=pentium4 -fomit-frame-pointer -pipe", can I put this as:
| Code: | | # gcc -o spf ./spf.c -lspf -O2 -march=pentium4 -fomit-frame-pointer -pipe |
_________________ Making *nix user friendly is easier than debugging Windoz
Tuxntosh web site The *nix Graphics Web Site (Warning! Not for M$ Windowz users!) |
|
| Back to top |
|
 |
kallamej Administrator


Joined: 27 Jun 2003 Posts: 4785 Location: Gothenburg, Sweden
|
Posted: Tue Jun 28, 2005 7:59 pm Post subject: |
|
|
OK, the libspf ebuild installed spf.h directly in /usr/include so you have to change | Code: | | #include <spf/spf.h> |
to
in spf.c. Then it should work. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net |
|
| Back to top |
|
 |
Liquid Crystal Tux's lil' helper


Joined: 06 Nov 2003 Posts: 77
|
Posted: Wed Jun 29, 2005 4:48 pm Post subject: |
|
|
Thanks a lot kallamej, I think I have passed this point now...
The only thing remaining is to ensure that the plug in is working as expected  _________________ Making *nix user friendly is easier than debugging Windoz
Tuxntosh web site The *nix Graphics Web Site (Warning! Not for M$ Windowz users!) |
|
| Back to top |
|
 |
RioFL Guru


Joined: 31 Oct 2002 Posts: 407
|
Posted: Mon Sep 05, 2005 1:51 am Post subject: |
|
|
| Liquid Crystal wrote: | Thanks a lot kallamej, I think I have passed this point now...
The only thing remaining is to ensure that the plug in is working as expected  |
Does it work? I just installed it and find no mention of spf in any logs. I have the environment variable SPF set to 1. When I attempt to send myself an email I get an error msg back via the client that says SPF Plugin crashed with no explanations of any kind. I find no documentation of any kind other than a reminder to place the desired number into the SPF env variable. I am at a total loss here..
I have installed, in this order:
libspf 1.0.0-p3
qmail 1.0.3-r16
ucspi-tcp-0.88-r11 (there was an update so I did it)
the spf.c source from
http://qmail-spp.sourceforge.net/downloads/show_src.php?file=spf.c&raw=1
[Edit 9-6-05] - I joined the general qmail-spp mailing list and placed my problem there. The author of spf.c mentioned there was a communication problem with the current libspf and did a fix for it located here:
http://qmail-spp.sourceforge.net/downloads/spf.c
This , however has still not fixed my problem.
[end edit]
I did change the #include to remove the spf/ so it could find the header in /usr/includes and compiled it with the recommended switches. It compiled without complaint.
I created a /var/qmail/plugins directory and placed spf in there both with permissions of 755 root:qmail. I then edited the smtpplugins config file to remove the comment from the spf line. I even tried it with the : to invoke a shell. Same problem. It is currently commented out so the server works until I can fix this.
any clues? any way to get this thing to make a log somewhere so maybe it can tell me what is wrong? |
|
| Back to top |
|
 |
RioFL Guru


Joined: 31 Oct 2002 Posts: 407
|
Posted: Wed Sep 07, 2005 2:21 pm Post subject: |
|
|
I just got it all to work. It appears there is a bug in the gentoo implemetation of libspf-1.0.0_p3. I am going to report this as soon as I am finished here. To make it work you must use the updated spf.c source available here as it has communication fixes for the -p3 library:
http://qmail-spp.sourceforge.net/downloads/spf.c
Then unmerge gentoo's libspf (until they fix the problem) and install the lbspf from sources available at libspf.org. To make things simple, use the following config option:
./config --prefix=/usr
then make and make install
when finished be sure to run env-update
then make the spf.c using these options:
gcc -lspf -o spf ./spf.c
make a /var/qmail/plugins directory and place the spf binary there.
The permissions I used on the plugins directory and binary were:
chmod 755
chown root:qmail |
|
| Back to top |
|
 |
nastasa_andrey n00b

Joined: 24 Mar 2004 Posts: 62
|
Posted: Tue May 15, 2007 2:30 pm Post subject: |
|
|
| How about domain keys? How can i install/use them in netqmail? |
|
| Back to top |
|
 |
RioFL Guru


Joined: 31 Oct 2002 Posts: 407
|
Posted: Tue May 15, 2007 3:06 pm Post subject: |
|
|
| nastasa_andrey wrote: | | How about domain keys? How can i install/use them in netqmail? |
might search for a plugin. i am honestly not sure since qmail has taken a back seat in our org since 2005 when my last post on this was we still use it as a secondary mx but its intelligence is not as important since we only use it as a storage queue when the primary is down.
probably the best suggestion would be to join the qmail mailing list and see how they are implementing it. i seem to remember there being a patch for it but i'm not sure how it works. |
|
| Back to top |
|
 |
|