Sendmail inboxes with email in - Scalix rescanning possible?

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Sendmail inboxes with email in - Scalix rescanning possible?

Postby William » Wed Aug 09, 2006 10:56 am

I edited the sendmail.mc file the other day and recompiled it to the sendmail.cf, all via webmin (in an attempt to stop the trusted user 'uucp' getting spam - now blocked at the firewall).

The scalix program puts its hooks into sendmail by directly editing the sendmail.cf file, the changes were over written by recompiling the sendmail.mc file.

To get the Scalix hooks into sendmail again I simply ran the omsendin command.
The added lines to the sendmail.cf file were:

cat /etc/mail/sendmail.cf | grep -i scalix

# Scalix Mappers and Trusted User
Komuser program /opt/scalix/bin/ommapsmtp
Komxport program /opt/scalix/bin/ommapsmtp -x
Tscalix
# The following lines were inserted for Scalix. Ignore the preceding comment.
Rscalix $#omxport$@ $( omxport $w $) $:scalix
Rscalix < @ $=w . > $#omxport$@ $( omxport $1 $) $:scalix
Rscalix:$-:$+ $# scalix $@ $1 $: $2
# End of Scalix lines. The Remaining names must be local
### Scalix mailers
Mscalix, P=/opt/scalix/bin/unix.in, E=\n, F=PDFMXmnu, A=unix.in -s $h
Momxport, P=/opt/scalix/bin/xport.in, F=LMn, A=xport.in -s $h $u


Anyway, this is the reason some emails have been sitting in sendmail inboxes.

How would I get all these inboxes 'rescanned' by Scalix and processed by its rules?

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Postby William » Fri Aug 11, 2006 8:30 am

/bump

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Fri Aug 11, 2006 8:44 am

Not sure what you mean with sendmail in boxes, but it sounds to me like they were delivered locally to users. How many messages are we talking?

Cheers,

Sascha.

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Postby William » Fri Aug 11, 2006 9:16 am

Hi Sascha

under 100 messages. Am going through by hand at the moment forwarding each one, but for future reference and/or for current usage, I was wondering if there was a command to get Scalix to empty all the sendmail user mailboxes and deliver them as if Scalix had just recieved them.

It seems there is/was a few emails in the sendmail user mailboxes from other occasions, not sure how they got in there, but to have a command (to run periodically) that would do as described above would be useful to maintain clean sendmail user mailboxes.

Thank you.

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Postby William » Tue Aug 15, 2006 4:14 am

Does the Scalix server and the Sendmail server connection not work like that?
I perhaps need to be looking for a sendmail command to do what I need?

hydrospace
Posts: 54
Joined: Tue Mar 01, 2005 11:44 am
Location: Leipzig, germany
Contact:

Postby hydrospace » Tue Aug 15, 2006 8:46 am

so to say cause of any reason the incoming mails were delivered to /var/spool/mail into the appropriate mailboxes? And now you want to resubmit them to sendmail in order to let them received by scalix? Or am I wrong...

Well we had the same thing at a clients side. One thing in advance: when we did it just beware that the sent date will be changed to the latest date when you submit the command line. I will check for it and post it here..

Stefan

hydrospace
Posts: 54
Joined: Tue Mar 01, 2005 11:44 am
Location: Leipzig, germany
Contact:

Postby hydrospace » Tue Aug 15, 2006 8:57 am

I got it. we used formail -s -A /usr/sbin/sendmail foo@tld.com </var/spool/mail/<foo.mbox>

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Postby William » Tue Aug 15, 2006 12:22 pm

I used:

cat /var/spool/mail/root | formail -s /usr/sbin/sendmail root@domainname.com
Which sent all the root email to sendmail again which was passed onto Scalix.

And then deleted the email in the sendmail mailbox.

It does not preserve the original date and time (except deep in the headers).

Interestingly the issue of the other emails being in the sendmail inboxes (/var/spool/mail/username ) was due to the Unix username not being specified as a Scalix email address for the user. The Unix username and the Scalix username were the same.

Thank you hydrospace for the help.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 4 guests