Re: postfix and listserv mailing list question (fwd)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: postfix and listserv mailing list question (fwd)

Bahram Paiani
Thanks for responding, I hope the fallowing is useful. I like to ask
Wietse if the filename is kind of thing that postfix produce; does the .joa at
the end of the file signifies a problem(in48616b55-06a0d.joa)?
fyi -- also lsv_amin is run suid.

Thanks,

Bahram

The following is snippet from my maillog that shows the handling of E-mail
to lsv_amin smtp interface of listserv mailing list:

Jun 25 16:39:25 listserv postfix/qmgr[32385]: 0A88F1FAD1:
from=<root@listserv.
unt.edu>, size=317, nrcpt=1 (queue active)
Jun 25 16:39:25 listserv2 LSV:lsv_amin[32502]: Mail for listserv (from
99/3001) delivered to LISTSERV.
Jun 25 16:39:25 listserv2 postfix/local[32501]: 0A88F1FAD1:
to=<[hidden email]>, relay=local, delay=0.07, delays=
0.06/0.01/0/0, dsn=2.0.0, status=sent (delivered to command:
/usr/local/bin/lsv_amin /home/listserv/spool listserv)
Jun 25 16:39:25 listserv postfix/qmgr[32385]: 0A88F1FAD1: removed
---------------------------------------------------------------------
And here is the output of postconf -n

alias_database = $alias_maps
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
disable_dns_lookups = yes
html_directory = no
local_recipient_maps = $alias_maps
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, $mydomain
mydomain = domain
myhostname = listserv.domain
mynetworks = 127.0.0.0/8, 192.168.0.0/16
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual

Bahram Paiani wrote:

> Folks,
>
> I have been running a listserv and sendmail installation in a Sun Solaris
> environment for more than a decade. For some practical reasons I am testing
> listserv in redhat environment with postfix. I have put the following in my
> virtual file: /etc/postfix/virtual
>
> [hidden email]             listserv
> [hidden email]       owner-listserv
> ---------------------------------------------------------
> I also have the following in my /etc/alaises
>
> # -- Aliases for LISTSERV server
> listserv: "|/usr/local/bin/lsv_amin  /home/listserv/spool listserv"
> owner-listserv: "|/usr/local/bin/lsv_amin  /home/listserv/spool
> owner-listserv"


you need to show the output of 'postconf -n' if you want help. also show
relevant logs.

here, you use non fqdn addresses (no domain part). so these addresses get
"fixed" by postfix and receive an @$myorigin. if your $myorigin is a local
domain, you're ok. if it's not, surprise...


> --------------------------------------------------------------------
> postfix maillog reports that mail deliverd to the command in the alias file
> however, the mail get deposited to the listserv spool directory with the
> following name and does not get delivered:
>
> in48616b55-06a0d.joa
>
> renaming the above file to "in48616b55-06a0d.job" causes the listserv program
> to deliver the E-mail. listserv support suggests that postfix might have
> something to do with this. Any thoughts?

postfix doesn't care of the file name. if you manage to get it to work, it will
pass mail to the listserv command and that's it. the logs should show whether
postfix passes mail to this command or whether postfix passes mail to seomthing
else.

>
> By the way, the group for the file is changed from listserv to nobody:
>
> -rw------- 1 listserv nobody     507 Jun 24 16:47 in48616b55-06a0d.joa
>
> Thanks,
>
> Bahram
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: postfix and listserv mailing list question (fwd)

mouss-2
Bahram Paiani wrote:

> Thanks for responding, I hope the fallowing is useful. I like to ask
> Wietse if the filename is kind of thing that postfix produce; does the
> .joa at the end of the file signifies a problem(in48616b55-06a0d.joa)?
> fyi -- also lsv_amin is run suid.
>
> Thanks,
>
> Bahram
>
> The following is snippet from my maillog that shows the handling of
> E-mail to lsv_amin smtp interface of listserv mailing list:
>
> Jun 25 16:39:25 listserv postfix/qmgr[32385]: 0A88F1FAD1:
> from=<root@listserv.
> unt.edu>, size=317, nrcpt=1 (queue active)
> Jun 25 16:39:25 listserv2 LSV:lsv_amin[32502]: Mail for listserv (from
> 99/3001) delivered to LISTSERV.
> Jun 25 16:39:25 listserv2 postfix/local[32501]: 0A88F1FAD1:
> to=<[hidden email]>, relay=local, delay=0.07, delays=
> 0.06/0.01/0/0, dsn=2.0.0, status=sent (delivered to command:
> /usr/local/bin/lsv_amin /home/listserv/spool listserv)

so postfix successfully delivered mail to the listserv command. it is up
to the listserv command to do whatever it wants with the message.
postfix is no more involved.