DevHeads.net

Postings by Christos Chatzaras

lost connection while sending end of data

I use dovecot lmtp, dovecot quota plugin and postfix.

When I send e-mail to 2 recipients (or more) at the same time and if one of them is over quota (or under quota and the message I send is bigger than his free space) mailq shows:

-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
20B03336F22 26099 Thu Apr 19 18:02:47 <a href="mailto: ... at example dot com"> ... at example dot com</a>
(lost connection with server25.example.org[private/dovecot-lmtp] while sending end of data -- message may be sent more than once)
<a href="mailto: ... at example dot com"> ... at example dot com</a>
user2@exa

Bogofilter and whitelist

I scan incoming mail with bogofilter. Here is the related part of master.cf :

smtp inet n - n - - smtpd
-o content_filter=filter:
-o receive_override_options=no_address_mappings
filter unix - n n - - pipe
flags=Rq user=filter argv=/usr/local/etc/bogofilter/postfix-filter.sh -f ${sender} -- ${recipient}

Is it possible to not filter if sender IP is in list.dnswl.org <http://list.dnswl.org/> using master.cf or main.cf ?

Or the only way is to rewrite postfix-filter.sh script and add the check there?

Question about list.dnswl.org

I create a new account at <a href="http://www.dnswl.org" title="www.dnswl.org">www.dnswl.org</a> <http://www.dnswl.org/> and add my primary domain in their portal.

I also request them to add my outgoing SMTP IPs (I think they manually check it before add).

To query their database, do I have to ask them to add my resolver's IPs too?

It looks like they allow access from "unknown" IPs (test it with nslookup), but I want to make sure that registering resolver's IPs is not needed to avoid them block the requests made by my resolvers in the future.

Relay mail from virtual domains and issue when the sender and recipient is on same server

What I want to do:

I want to disable local delivery for e-mails from virtual domains / mailboxes when sender / recipient is on same server. I want these e-mails to pass through a relay.

My setup :

I have postfix and dovecot on server1.example.com and smtp.example.com acts as relay for server1.example.com. MX for example.com points to server1.example.com so incoming e-mails go to this server. Outgoing e-mails for domains not hosted in server1.example.com go through the relay.

problem with spam

Μy server with IP 178.63.64.86 is blacklisted at <a href="http://cbl.abuseat.org" title="http://cbl.abuseat.org">http://cbl.abuseat.org</a> for stealrat spambot. My mail server is configured to send only e-mail from authenticated users. Also local users (from shell) can't send e-mail and also mail() php function is disabled too. I got this e-mail from hotmail ( <a href="http://pastebin.com/raw.php?i=D6fFDUYH" title="http://pastebin.com/raw.php?i=D6fFDUYH">http://pastebin.com/raw.php?i=D6fFDUYH</a> ) that shows that my mail server send e-mail from <a href="mailto:marcella_sharpe@akrogiali-restaurant.gr">marcella_sharpe@akrogiali-restaurant.gr</a> to <a href="mailto: ... at hotmail dot com"> ... at hotmail dot com</a> , but on the logs there is no entry that e-mail sent to <a href="mailto: ... at hotmail dot com"> ... at hotmail dot com</a> . Any idea what may be the problem ?