[Greylist-users] Getting greylisting going on a new Debian
Steven Jones
Steven.Jones at vuw.ac.nz
Thu Jun 26 19:35:07 PDT 2008
OK,
this is what I did,
checking the .pl,
8><----
my $config_file = "/etc/mail/relaydelay.conf";
8><----
ls -l,
lrwxrwxrwx 1 root smmsp 53 2008-05-31 17:25 relaydelay.conf -> /etc/mail/greylisting/relaydelay-0.04/relaydelay.conf
hermes:/etc/mail#
I am sending the mail via Thunderbird, but also via the command line on the mailserver itself using "mail", either way I get the failure,
"mail thing" shows,
8><--------
| 15 | NULL | <root at hermes.thing.dyndns.org> | <thing at hermes.thing.dyndns.org> | 2008-06-27 14:18:53 | 2008-06-27 19:10:53 | 1 | 0 | 0 | AUTO | 2008-06-27 14:10:53 | 2008-06-27 14:10:53 |
+----+-----------+----------------------------------------------+--------------------------------------+---------------------+---------------------+---------------+--------------+---------------+-------------+---------------------+---------------------+
15 rows in set (0.00 sec)
8><-------
Jun 27 14:10:53 hermes sendmail[20463]: m5R2Ar2l020463: from=root, size=26, class=0, nrcpts=1, msgid=<200806270210.m5R2Ar2l020463 at hermes.thing.dyndns.org>, relay=root at localhost
Jun 27 14:10:53 hermes sm-mta[20465]: m5R2ArtC020465: Milter: to=<thing at hermes.thing.dyndns.org>, reject=451 4.7.1 Please try again later (TEMPFAIL)
Jun 27 14:10:53 hermes sendmail[20463]: m5R2Ar2l020463: to=thing, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30026, relay=[127.0.0.1] [127.0.0.1], dsn=4.7.1, stat=Deferred: 451 4.7.1 Please try again later (TEMPFAIL)
Jun 27 14:10:53 hermes sm-mta[20465]: m5R2ArtC020465: from=<root at hermes.thing.dyndns.org>, size=26, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost.localdomain [127.0.0.1]
8><------
Ok,
cleaning up the database,
mysql> delete from relaytofrom where relay_ip IS NULL ;
Query OK, 12 rows affected (0.00 sec)
mysql> select * from relaytofrom;
Empty set (0.00 sec)
So its empty.....
INSERT INTO relaytofrom (relay_ip, record_expires, create_time)
VALUES ('127.0.0.1', '9999-12-31 23:59:59', NOW());
so we get this,
mysql> select * from relaytofrom;
+----+-----------+-----------+---------+---------------------+---------------------+---------------+--------------+---------------+-------------+---------------------+---------------------+
| id | relay_ip | mail_from | rcpt_to | block_expires | record_expires | blocked_count | passed_count | aborted_count | origin_type | create_time | last_update |
+----+-----------+-----------+---------+---------------------+---------------------+---------------+--------------+---------------+-------------+---------------------+---------------------+
| 16 | 127.0.0.1 | NULL | NULL | 0000-00-00 00:00:00 | 9999-12-31 23:59:59 | 0 | 0 | 0 | MANUAL | 2008-06-27 14:27:37 | 2008-06-27 14:27:37 |
+----+-----------+-----------+---------+---------------------+---------------------+---------------+--------------+---------------+-------------+---------------------+---------------------+
1 row in set (0.00 sec)
mysql>
edit relaydelay.conf as advised,
8><----------
# senders as local in case we are acting as a smarthost for them.
#ssj $reverse_mail_tracking = 1;
$reverse_mail_tracking = 0;
8><---------
restart sendmail.
8><------------
/etc/mail/greylisting/relaydelay-0.04/relaydelay.sh stop
hermes:/etc/mail/greylisting/relaydelay-0.04# /etc/mail/greylisting/relaydelay-0.04/relaydelay.sh: line 6: 2524 Terminated /usr/local/sbin/relaydelay.pl $CONFIG
hermes:/etc/mail/greylisting/relaydelay-0.04# /etc/init.d/sendmail restart
Restarting Transport Agent: sendmail.
hermes:/etc/mail/greylisting/relaydelay-0.04# Loading Config File: /etc/mail/relaydelay.conf
Using connection 'local:/var/run/relaydelay.sock' for filter relaydelay
Attempting to unlink local UNIX socket '/var/run/relaydelay.sock' ... successful.
DBI Connecting to DBI:mysql:database=relaydelay:host=localhost:port=3306
Starting Sendmail::Milter 0.18 engine.
hermes:/etc/mail/greylisting/relaydelay-0.04#
8><--------
Testing from the command line,
8><----
mysql> select * from relaytofrom;
+----+-----------+--------------------------------+---------------------------------+---------------------+---------------------+---------------+--------------+---------------+-------------+---------------------+---------------------+
| id | relay_ip | mail_from | rcpt_to | block_expires | record_expires | blocked_count | passed_count | aborted_count | origin_type | create_time | last_update |
+----+-----------+--------------------------------+---------------------------------+---------------------+---------------------+---------------+--------------+---------------+-------------+---------------------+---------------------+
| 16 | 127.0.0.1 | NULL | NULL | 0000-00-00 00:00:00 | 9999-12-31 23:59:59 | 0 | 0 | 0 | MANUAL | 2008-06-27 14:27:37 | 2008-06-27 14:27:37 |
| 17 | NULL | <root at hermes.thing.dyndns.org> | <thing at hermes.thing.dyndns.org> | 2008-06-27 14:40:01 | 2008-06-27 19:32:01 | 1 | 0 | 0 | AUTO | 2008-06-27 14:32:01 | 2008-06-27 14:32:01 |
+----+-----------+--------------------------------+---------------------------------+---------------------+---------------------+---------------+--------------+---------------+-------------+---------------------+---------------------+
2 rows in set (0.00 sec)
8><------
8><------
hermes:/var/log# tail -f mail.log
Jun 27 14:31:56 hermes fetchmail[21303]: awakened at Fri 27 Jun 2008 14:31:56 NZST
Jun 27 14:31:58 hermes fetchmail[21303]: sleeping at Fri 27 Jun 2008 14:31:58 NZST for 900 seconds
Jun 27 14:32:01 hermes sendmail[26956]: m5R2W1Bt026956: from=root, size=26, class=0, nrcpts=1, msgid=<200806270232.m5R2W1Bt026956 at hermes.thing.dyndns.org>, relay=root at localhost
Jun 27 14:32:01 hermes sm-mta[26958]: m5R2W1cO026958: Milter: to=<thing at hermes.thing.dyndns.org>, reject=451 4.7.1 Please try again later (TEMPFAIL)
Jun 27 14:32:01 hermes sendmail[26956]: m5R2W1Bt026956: to=thing, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30026, relay=[127.0.0.1] [127.0.0.1], dsn=4.7.1, stat=Deferred: 451 4.7.1 Please try again later (TEMPFAIL)
Jun 27 14:32:01 hermes sm-mta[26958]: m5R2W1cO026958: from=<root at hermes.thing.dyndns.org>, size=26, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost.localdomain [127.0.0.1]
8><-------
and we have a failure...
regards
Steven
More information about the Greylist-users
mailing list