Summary
/Usage/: @ list-remote-forwards [OPTIONS] @ List all remote forwards for mail accounts stored in a SQL database. A list of local domains is supplied to the program (more or less) through the @--domain-query@ option. Any addresses which forward to another address not contained in this list of local domains is considered a remote forward. Remote forwards can cause problems for a number of reasons, the most common of which are, * If the sender has an SPF record authorizing his mail server to send mail on his behalf, then when his message is forwarded by the recipient's mail server, it will fail any subsequent SPF checks. This will likely cause the message to be rejected, and the original recipient's server will generate backscatter. * If any spam makes it through the filter on the recipient's mail server, that spam will then be forwarded to a remote destination. The remote destination will blame the forwarding server for the spam, and that can impact its reputation and potentially lead to a blacklisting even though the spam did not originate on the recipient's server. Whether or not these are an issue depends on the circumstances, but in any case it is useful to know who is forwarding mail off-site. /Input:/ None. /Output:/ A list of addresses that are forwarded to remote domains. /Options/: @ \--database @ The name of the database (or file, if SQLite) to which we should connect. Default: The name of the current user (Postgres only). @ \--domain-query @ SQL query used to produce a list of local domains. This should return the set of all domains (i.e one column) that are local to the server. See the default value for an example. Default: \"SELECT domain FROM domain WHERE domain <> 'ALL' ORDER BY domain;\" @ \--exclude-mx, -e @ The name of a mail exchanger, the forwards of whose domains we should ignore. For example, if one mail exchanger, mx1.example.com, has strict spam filtering, it may be acceptable to have remote forwarding for domains that have mx1.example.com as their sole mail exchanger (MX record). In that case, you might want to exclude those domains from the report by naming mx1.example.com here. A forward will be excluded from the report only if /all/ of its MX records are contained in the given exclude list. This option can be repeated to add mail exchangers to the exclude list. Default: [] (empty) @ \--forward-query, -f @ SQL query used to produce a list of all forwards on the mail system. This query should return the set of all (address, goto) triples, where \"goto\" is the destination address; i.e. to where the \"address\" forwards. The \"goto\" field may contain more than one email address, separated by commas. Default: \"SELECT address,goto FROM alias ORDER BY address;\" @ \--host, -h @ Hostname where the database is located (Postgres-only). Default: None, a UNIX domain socket connection is attempted (Postgres only) @ \--password @ Password used to connect to the database (Postgres-only). Default: None (assumes passwordless authentication) @ \--port @ Port number used to connect to the database (Postgres-only). Default: None, a UNIX domain socket connection is attempted (Postgres only) @ \--username, -u @ Username used to connect to the database (Postgres-only). Default: The current user /Examples/: @ $ list-remote-forwards --database=test/fixtures/postfixadmin.sqlite3 user1@example.com -> user1@example.net user2@example.com -> user1@example.org user2@example.com -> user2@example.org user2@example.com -> user3@example.org user7@example.com -> user8@example.net @
Versions
v0.0.3 :: 0 :: gentoo
- Modified
- License
- AGPL-3
- Keywords
- amd64 ~arm64 ~ppc64 ~riscv ~x86
- USE flags
- test
USE flags
General
- test
- Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)
Dependencies
dev-haskell / cabal : A framework for packaging Haskell software
dev-haskell / cmdargs : Command line argument processing
dev-haskell / configurator : Configuration management
dev-haskell / dns : DNS library in Haskell
dev-haskell / doctest : Test interactive Haskell examples
dev-haskell / filemanip : Expressive file and directory manipulation for Haskell
dev-haskell / hdbc : Haskell Database Connectivity
dev-haskell / hdbc-postgresql : PostgreSQL driver for HDBC
dev-haskell / hdbc-sqlite3 : Sqlite v3 driver for HDBC
dev-haskell / missingh : Large utility library
dev-haskell / tasty : Modern and extensible testing framework
dev-haskell / tasty-hunit : HUnit support for the Tasty test framework
dev-haskell / tasty-quickcheck : QuickCheck support for the Tasty test framework
Change logs
- Repository mirror & CI · gentoo
Merge updates from master - hololeap · gentoo
net-mail/list-remote-forwards: Stabilize for amd64
Signed-off-by: hololeap <hololeap@users.noreply.github.com> Signed-off-by: Sam James <sam@gentoo.org> - Repository mirror & CI · gentoo
Merge updates from master - matoro · gentoo
net-mail/list-remote-forwards: keyword 0.0.3 for ~riscv
Closes: https://github.com/gentoo/gentoo/pull/27397 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> - Repository mirror & CI · gentoo
Merge updates from master - matoro · gentoo
net-mail/list-remote-forwards: keyword 0.0.3 for ~arm64
Closes: https://github.com/gentoo/gentoo/pull/27048 Signed-off-by: Sam James <sam@gentoo.org> - Repository mirror & CI · gentoo
Merge updates from master - Michael Orlitzky · gentoo
net-mail/list-remote-forwards: RESTRICT inconsistent tests.
Signed-off-by: Michael Orlitzky <mjo@gentoo.org> - Repository mirror & CI · gentoo
Merge updates from master - Michael Orlitzky · gentoo
net-mail/list-remote-forwards: add 0.0.3, drop 0.0.1-r2
Signed-off-by: Michael Orlitzky <mjo@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/26981 - matoro · gentoo
net-mail/list-remote-forwards: keyword 0.0.1-r2 for ~ppc64
Signed-off-by: Michael Orlitzky <mjo@gentoo.org> - Repository mirror & CI · gentoo
Merge updates from master - Sergei Trofimovich · gentoo
net-mail/list-remote-forwards: drop obsolete CABAL_FEATURES=bin
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> - Repository mirror & CI · gentoo
Merge updates from master - Jakov Smolic · gentoo
net-mail/list-remote-forwards: update homepage
Package-Manager: Portage-3.0.3, Repoman-3.0.0 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> - Repository mirror & CI · gentoo
Merge updates from master - Sergei Trofimovich · gentoo
net-mail/list-remote-forwards: drop old
Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> - Repository mirror & CI · gentoo
Merge updates from master - Sergei Trofimovich · gentoo
net-mail/list-remote-forwards: fix for ghc-8.4
Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> - Repository mirror & CI · gentoo
Merge updates from master - Michał Górny · gentoo
*/*: Inline mirror://hackage and update URIs
This change inlines mirror://hackage in all ebuilds, and updates URIs to the modern form (old URIs redirect to that). The change has been made using the following command: find -name '*.ebuild' -exec sed -r -i \ -e 's@mirror://hackage/@https://hackage.haskell.org/@g' \ -e 's@https://hackage.haskell.org/packages/archive/([^/]*)/([^/]*)/@https://hackage.haskell.org/package/\1-\2/@g' \ -e '/hackage\.haskell\.org/s@\$\{PN}-\$\{PV}@${P}@g' \ -e '/hackage\.haskell\.org/s@\$\{MY_PN}-\$\{PV}@${MY_P}@g' \ -e '/hackage\.haskell\.org/s@\$\{PN}-\$\{MY_PV}@${MY_P}@g' \ {} + Signed-off-by: Michał Górny <mgorny@gentoo.org> - Sergei Trofimovich · gentoo
dev-haskell/hdbc-sqlite3: move package from dev-haskell/hdbc-sqlite:2
Package-Manager: Portage-2.3.5, Repoman-2.3.2 - Robin H. Johnson · gentoo
Drop $Id$ per council decision in bug #611234.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> - Michael Orlitzky · gentoo
net-mail/list-remote-forwards: new package to find off-site mail forwards.
Package-Manager: portage-2.2.28