Differences between version 3 and predecessor to the previous major change of POPbeforeSMTP.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 3 | Last edited on Sunday, August 17, 2003 4:32:36 pm | by CraigBox | Revert |
Older page: | version 2 | Last edited on Sunday, August 17, 2003 2:28:13 pm | by DanielLawson | Revert |
@@ -1,9 +1,9 @@
-POP before SMTP is a way of allowing hosts to relay through you for a set period of time. This is useful when you host domains for people who are not on the same local network as you, and need to send mail coming from these domains.
+[
POP|POP3]
before [
SMTP]
is a way of allowing hosts to relay through you for a set period of time. This is useful when you host domains for people who are not on the same local network as you, and need to send mail coming from these domains.
This assumes you use some kind of POP server on the same server as you use for SMTP. You'll want a piece of software that listens on your POP daemon's log file for any connections, and when it sees a valid connection, will add the IP address to a file. You configure your MTA to check this file as a list of allowed relay IP addresses.
-One such piece of software is called [exact|http://www.britishsteal.com/dist/exact/] , and it works great with Exim, provided you make a small modification to your exim startup script after following the installation instructions for exact.
+One such piece of software is called [exact|http://www.britishsteal.com/dist/exact/] , and it works great with [
Exim]
, provided you make a small modification to your exim startup script after following the installation instructions for exact.
For me, running debian, I had to edit /etc/init.d/exim , and just under the line that says
echo -n "Starting MTA: "
put something like
@@ -18,26 +18,26 @@
Note, I could never get it going properly on sendmail using the provided instructions.
----
-For Cyrus 2.x under debian
, I had to change the logfile regex a bit:
+For [
Cyrus]
2.x under [Debian]
, I had to change the logfile regex a bit:
It used to read:
# Cyrus
# =====
order address,username
- match (login): \[([-9\.]*)\] ([^ ]*)
+ match (login): \[
[([
[-9\.]*)\] ([
[^ ]*)
Which is fine, except it matches on text like:
- ..... login: [ip.ad.dr.ess] someusername ...
+ ..... login: [
[ip.ad.dr.ess] someusername ...
Whereas, the cyrus 2.x logfiles (under Debian anyway, backported from unstable), look more like:
- ..... login: some.host.name[ip.ad.dr.ess] someusername ...
+ ..... login: some.host.name[
[ip.ad.dr.ess] someusername ...
The following like will naively match. It works for me :)
- match (login): .*\[([-9\.]*)\] ([^ ]*)
+ match (login): .*\[
[([
[-9\.]*)\] ([
[^ ]*)
--DanielLawson
See also EximSmtpAuth for an alternative method of achieving the same end.