Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 179237 - Review Request: swaks - A command-line SMTP transaction tester
Summary: Review Request: swaks - A command-line SMTP transaction tester
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Paul Howarth
QA Contact: Fedora Package Reviews List
Depends On:
TreeView+ depends on / blocked
Reported: 2006-01-28 19:33 UTC by Jason Tibbitts
Modified: 2014-09-15 11:58 UTC (History)
2 users (show)

Fixed In Version: swaks-20100211.0-4.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2006-05-15 18:11:19 UTC
Type: ---
gwync: fedora-cvs+

Attachments (Terms of Use)

Description Jason Tibbitts 2006-01-28 19:33:24 UTC
Spec Name or Url:
SRPM Name or Url:
Swiss Army Knife SMTP: A command line SMTP tester.  Swaks can test
various aspects of your SMTP server, including TLS and AUTH.

This package is about as simple as it gets.

rpmlint says:
W: swaks non-standard-group Utilities
E: swaks no-signature

At least one package in FC4 is in the Utilities group so I'm not sure why it's nonstandard, but I'll happily change if someone suggests an appropriate group.

Note that this program alters its functionality depending on what Perl modules are installed.  Technically no non-core modules are requred, but most of the functionality of the program is missing.  I have elected to Requires: three modules which are already in Core+Extras (Net::DNS, Time::HiRes, Net::SSLeay).

Comment 1 G. de Vries 2006-01-28 19:46:51 UTC
(In reply to comment #0)
> rpmlint says:
> W: swaks non-standard-group Utilities
> At least one package in FC4 is in the Utilities group so I'm not sure why it's
nonstandard, but I'll happily change if someone suggests an appropriate group.

I found a list of valid groups at
From that list, Applications/Internet looks appropriate to me.

Comment 2 Jason Tibbitts 2006-01-28 19:55:03 UTC
The list of groups used in FC-4 is nearly twice as long (51 groups) so that page
must be out of date.  I'll do some editing.

In any case, Applications/Internet seems reasonable, although a having a 50K
Perl script in the same group as Mozilla seems comical.

Comment 3 Michael Schwendt 2006-01-30 12:05:55 UTC
> The list of groups used in FC-4 is nearly twice as long

Doesn't say anything about whether it might be even more out-of-date
or better to choose from. Unless FC offers a well-maintained list
of official groups, the RPM Group tag is only old cruft which doesn't
permit good and convenient classification of packages into groups. It
seems to me some packagers have made up their own groups without
adhering to any existing tree-like structure, creating new branches
only if old branches become too crowded. E.g. Text Processing/Markup/XML
is used, but "Text Processing" and "Text Processing/Markup" are not.
This is a questionable decision.

Comment 4 Jason Tibbitts 2006-01-30 15:18:45 UTC
I'm not sure how your comments relate to the review of the swaks package.  Are
you contesting the choice of the Applications/Internet group?  If so, please
feel free to suggest something more appropriate.

Comment 5 Tim Jackson 2006-02-12 10:47:58 UTC
Jason, you've beaten me to it: I was going to submit swaks :) Thanks for this
package submission.

A few small comments:

1. I think that Source0 should be{version}
not as presumably the latter always points to
the latest version, making it invalid as new versions roll in.

2. In my own packaging of this I have the following deps in addition to the ones
you have:

- perl(MIME::Base64)
- perl(Digest::MD5)
- perl(Authen::NTLM)
- perl(Authen::DigestMD5)

Now, these aren't strictly required to be able to use swaks, but they are
required to implement all of the advertised functionality, and without them you
will get some fairly ungraceful errors when you try to do various things.
Therefore, I think they should be deps. In fact, the reason why I didn't submit
the swaks spec myself earlier is because one or two of the above (at least
Authen::NTLM IIRC) are not currently in FC/FE so they need submitting first.
This harks back to a discussion I initiated in Jan on fedora-extras-list about
"optional" deps:

3. Does the package need a BR on /usr/bin/pod2man or is that one of the implicit

Comment 6 Jason Tibbitts 2006-02-12 22:39:42 UTC
His distribution is a bit unorthodox; I wasn't aware that I could grab a
particular version.  Fixed.

Mime::Base64 and Digest::MD5 are both part of base perl and so it would be
against the packaging guidelines to BuildRequire: them.  (pod2man is part of
perl as well.)

As neither Authen::NTLM and Authen::DigestMD5 are in Core or Extras, requiring
them would be a complete blocker.  I can of course rebuild the package to
require them if they ever make it into the distro.  The program still works fine
and is useful without them, so not including them is not a blocker as far as I
can tell from my reading of the packaging guidelines.

Updated spec and src.rpm are in

Comment 7 Matthias Saou 2006-03-29 13:53:14 UTC
A few suggestions :
- Remove "A" from the summary : "Command-line SMTP transaction tester"
- Use "Buildarch:" insted of longer "BuildArchitectures:", as your headers will
  look nicer and all aligned :-)
- You could use "install -D -p -m 0755 %{SOURCE0} etc." instead of mkdir/cp/chmod
- No need to tag man pages as %doc, rpm does that by itself
- The forced %attr for the script is redundant with the chmod from %install

All the rest looks good. Let me know if you fix some of the above and I can then
do a formal review.

Comment 8 Jason Tibbitts 2006-03-29 15:09:47 UTC
Thanks for the comments.

Updated spec:
Updated SRPM:

Comment 9 Jason Tibbitts 2006-04-12 20:29:03 UTC
In case it wasn't clear, I addressed all five of your concerns with the updated

Comment 10 Paul Howarth 2006-05-12 13:57:25 UTC

- rpmlint clean
- package and spec naming OK
- package meets guidelines
- license is GPL, matches spec
- spec file written in English and is legible
- source matches upstream
- package builds OK on FC5 and in mock for rawhide (i386)
- no explicit BR's needed nor present
- no locales, libraries, sub-packages, or pkgconfigs to worry about
- not relocatable
- no directory ownership or permissions issues
- no duplicate files
- %clean section present and correct
- macro usage is consistent
- code not content
- no large docs
- docs don't affect runtime
- no desktop file needed
- package appears to work OK
- no scriptlets


  NTLM Auth requires Authen::NTLM from the NTLM perl distribution,
  which does not (despite what the first sentence of the license terms
  says) appear to be free software and is hence unlikely to get packaged
  for Extras.

  Digest-MD5 Auth requires Authen::DigestMD5, which will be available in
  Extras shortly after someone approves Bug #191494 (hint ;-) )


Comment 11 Jason Tibbitts 2006-05-15 18:11:19 UTC
I added the Authen::DigestMD5 dependency, imported, built and requested branches.


Comment 12 Mark McKinstry 2010-11-28 02:09:18 UTC
Package Change Request
Package Name: swaks
New Branches: el4 el5 el6
Owners: mmckinst
InitialCC: tibbs

I eamiled Jason about swaks in EPEL. He is not interested in maintaining the EPEL branches but is fine with me maintaining them.

Comment 13 Jason Tibbitts 2010-11-29 16:54:29 UTC
(I'd prefer not to be CC'd on EPEL bugs, thanks.)

Git done (by process-git-requests).

Comment 14 Fedora Update System 2011-02-25 14:19:42 UTC
swaks-20100211.0-4.el4 has been submitted as an update for Fedora EPEL 4.

Comment 15 Fedora Update System 2011-02-25 14:21:50 UTC
swaks-20100211.0-4.el5 has been submitted as an update for Fedora EPEL 5.

Comment 16 Fedora Update System 2011-02-25 14:22:41 UTC
swaks-20100211.0-4.el6 has been submitted as an update for Fedora EPEL 6.

Comment 17 Fedora Update System 2011-03-18 19:25:55 UTC
swaks-20100211.0-4.el5 has been pushed to the Fedora EPEL 5 stable repository.

Comment 18 Fedora Update System 2011-03-18 19:27:23 UTC
swaks-20100211.0-4.el4 has been pushed to the Fedora EPEL 4 stable repository.

Comment 19 Fedora Update System 2011-03-18 19:27:38 UTC
swaks-20100211.0-4.el6 has been pushed to the Fedora EPEL 6 stable repository.

Comment 20 Mark McKinstry 2014-09-10 01:24:35 UTC
Package Change Request
Package Name: fpdns
New Branches: epel7
Owners: mmckinst

Comment 21 Gwyn Ciesla 2014-09-10 10:13:21 UTC
Git done (by process-git-requests).

Comment 22 Mark McKinstry 2014-09-12 21:46:51 UTC
typoed that last request. should've been for swaks not fpdns.

Package Change Request
Package Name: swaks
New Branches: epel7
Owners: mmckinst

Comment 23 Gwyn Ciesla 2014-09-15 11:58:43 UTC
Git done (by process-git-requests).

Note You need to log in before you can comment on or make changes to this bug.