Discussion:
Message size limit problem with local delivery vs relay
(too old to reply)
a***@gmail.com
2018-12-11 09:15:06 UTC
Permalink
Dear All,
I'd like to ask for ideas or advice for this strange situation:
The setup is as follows: externally hosted and managed pop3 mailboxes, each box is retrieved by the clients directly. Outgoing mail is only possible through the ISP provided smtp server. There's a local server running postfix and cyrus imap for internal communication purposes. Postfix on this box is used as an MTA for queuing and managing all outgoing mail, which are then relayed to the ISP smpt The ISP smtp has a message size limit, therefore the local postfix is set up with this size limit as well.
There's also a special pop3 mailbox, which is then fetched by the local server using fetchmail and the incoming mail is put into a shared folder on the Cyrus imap, using the lmtp socket provided by cyrus.
This weird setup works fine.
Except for one rare situation: if someone sends an unusually large email to this "shared" mailbox, fetchmail will fetch it fine and passes it to postfix, but then it will refuse to pick it up because it exceeds the set size limit.
Is there a way to configure postfix so, that it only applies the size limit to outgoing relayed email, but not when its an internal destination? (If there is, I didn't yet find it).
Or any other suggestions please?
Thanks in advance.
a***@gmail.com
2018-12-11 12:47:18 UTC
Permalink
Actually, never mind. I think I solved it, by changing fetchmail to deliver directly through the cyrus lmtp socket instead of going through the MTA.
This seems to work for now.

Continue reading on narkive:
Search results for 'Message size limit problem with local delivery vs relay' (Questions and Answers)
4
replies
which is the site to get power point presentation or flash movie or games on value called trust?
started 2007-10-17 02:13:03 UTC
teaching
Loading...