• [gentoo-user] Problem with postfix

    From Peter Humphrey@21:1/5 to All on Fri Jun 20 18:50:01 2025
    Greetings,

    I have a small LAN, on which I have a workstation, a desktop PC and a small server. The server runs fetchmail, postfix and dovecot, and the desktop runs Kmail. I had the setup right several years ago, but it isn't now.

    When it receives an email addressed to prh@<desktop>, postfix insists on forwarding it directly to <desktop>, and then failing name lookup. It should instead accept the email itself and pass it to dovecot. And as far as I know, the DNS is working fine.

    This is part of my main.cf:

    myhostname = <server>.prhnet
    mydomain = prhnet
    proxy_interfaces = 192.168.178.1
    mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
    mail.$mydomain, www.$mydomain, ftp.$mydomain unknown_local_recipient_reject_code = 450
    mynetworks = 192.168.178.0/24, 127.0.0.0/8
    relay_domains =
    inet_protocols = ipv4
    home_mailbox = .maildir/
    body_checks_size_limit = 20480000

    I haven't touched master.cf (I think).

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Orlitzky@21:1/5 to Peter Humphrey on Fri Jun 20 23:40:02 2025
    On 2025-06-20 17:38:57, Peter Humphrey wrote:

    When it receives an email addressed to prh@<desktop>, postfix insists on forwarding it directly to <desktop>, and then failing name lookup. It should instead accept the email itself and pass it to dovecot. And as far as I know, the DNS is working fine.

    This is part of my main.cf:

    myhostname = <server>.prhnet
    mydomain = prhnet
    proxy_interfaces = 192.168.178.1
    mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
    mail.$mydomain, www.$mydomain, ftp.$mydomain

    I think this is because <desktop> is not in $mydestination, but the
    solution is probably to find whatever is sending mail to prh@<desktop>
    and convince it to send to an address (prh@prhnet?) that the server
    already accepts mail for. You could also try to alias prh@<desktop> to something that the server is expecting.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From peter@prh.myzen.co.uk@21:1/5 to Michael Orlitzky on Sat Jun 21 02:40:01 2025
    On 2025-06-20 09:36 PM, "Michael Orlitzky" <mjo@gentoo.org> wrote:

    I think this is because <desktop> is not in $mydestination, but the
    solution is probably to find whatever is sending mail to prh@<desktop>
    and convince it to send to an address (prh@prhnet?) that the server
    already accepts mail for. You could also try to alias prh@<desktop> to something that the server is expecting.

    Bingo! Got it in one. I just added <desktop>.$mydomain to $mydestination.

    Now I just have to sort out a couple of other minor problems. Watch this space!

    Many thanks, Michael. This has been bothering me for years.

    (Sent via web mail while I get this sorted out.)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Sat Jun 21 03:40:01 2025
    On Saturday, 21 June 2025 01:30:57 British Summer Time I wrote:

    On 2025-06-20 09:36 PM, "Michael Orlitzky" <mjo@gentoo.org> wrote:
    I think this is because <desktop> is not in $mydestination, but the solution is probably to find whatever is sending mail to prh@<desktop>
    and convince it to send to an address (prh@prhnet?) that the server
    already accepts mail for. You could also try to alias prh@<desktop> to something that the server is expecting.

    Bingo! Got it in one. I just added <desktop>.$mydomain to $mydestination.

    Now I just have to sort out a couple of other minor problems. Watch this space!

    Many thanks, Michael. This has been bothering me for years.

    (Sent via web mail while I get this sorted out.)

    Well, that was fine as a hack for testing, but Michael's fix is much better.

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)