Home Forums OS X Server and Client Discussion Mail Don’t Reject Unknown Reciepients

  • This topic has 3 replies, 2 voices, and was last updated 20 years ago by Anonymous.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #360412
    jxself
    Participant

    My server gets alot of messages addressed to non-existant users (it’s presumably spam.)

    Rather than have Postfix reject it, though, I’d like for the messages to be accepted & delivered to a specific user. This way I can sift through it and report the spam.

    I’ve been searching both this site and the internet in general looking for info on how to have Postfix not reject unknown recipients & instead deliver them to somewhere else.

    In my searches I’ve come across Postfix’s "luser_relay" command, but it’s not made a bit of difference (i.e., mail still rejected.)

    Has anyone does this themselves? Anyone care to share info on how to get Postfix to do this???

    Another thing to mention is that I have some virtual domains created (using the info at https://www.afp548.com/articles/Panther/postfixvirtual.html.)

    #360420
    iztech
    Participant

    local_recipient_maps =
    leave it empty.

    #360423
    jxself
    Participant

    Okay; thanks.

    I edited /etc/postfix/main.cf.

    I added luser_relay = spamcollector (the shortname of the user I created) as well as local_recipient_maps = .

    I then did sudo postfix reload.

    I sent a message to one of the e-mail addresses for the virtual hosts. It was delivered.

    In addition, stuff like this started appearing in the log when viewed inside Server Admin. (The users gilmore and summers don’t exist on the server.) These messages should have, in theory, been delivered to that user I created.

    Jan 20 00:22:23 bluehome postfix/pipe[23027]: D319744FD2: to=<[email protected]>, relay=procmail, delay=3, status=deferred (temporary failure. Command output: procmail: Couldn’t read "/Users/gilmore/.procmailrc" procmail: Program failure (65) of "/usr/bin/cyrus/bin/deliver" )

    Jan 20 00:44:26 bluehome postfix/pipe[25003]: ADC85455B6: to=<[email protected]>, relay=procmail, delay=2, status=deferred (temporary failure. Command output: procmail: Couldn’t read "/Users/summers/.procmailrc" procmail: Program failure (65) of "/usr/bin/cyrus/bin/deliver" )

    When I comment out luser_relay and local_recipient_map and restart Postfix these messages, of course, stop. They’re instead replaced with the normal message that the user doesn’t exist. The message is bounced.

    #361019
    Anonymous
    Guest

    I tried this with MacOS X Server 10.3.8 and it doesn’t work. I get an error : Mailbox does not exist

    Any idea ?

    thanks
    Starman

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Comments are closed