When I send a message via telnet, then submit program
is invoked 2 times, but it can read
submit should be invoked only once.
Submit on my box is still invoked 2 times. This is part of
Jarle Aage's patch and my debug lines in courier/submit.C:
size_t headercnt=500;
int headerlimit=100000;
const char *p;
int header_line_limit=5000;
FILE *log = fopen("/tmp/courier.log", "a+");
p = getenv("ESMTP_HEADER_LINE_LIMIT"); // Max bytes (octets) on a
single
if (p && (atoi(p) >= 1024))
header_line_limit = atoi(p);
p = getenv("ESMTP_HEADERLIMIT"); // Max bytes (octets) for the entire
header
if (p && (atoi(p) >= 20000))
headerlimit = atoi(p);
fprintf(log, "header_line_limit=%dn", header_line_limit);
fprintf(log, "headerlimit=%dn", headerlimit);
fclose(log);
and this is the result in log file:
# tail -f /tmp/courier.log
header_line_limit=20000 //my value of ESMTP_HEADER_LINE_LIMIT
headerlimit=200000
header_line_limit=20000 //my value of ESMTP_HEADERLIMIT
headerlimit=200000
Environment variables can be set up in the bofh configuration file:
opt VARIABLE=value
It seems that it works. Thank you very much!
Pawel