All incoming mail is put in /var/spool/mail not scalix

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

jmason1182
Posts: 55
Joined: Wed Jul 11, 2007 4:11 pm

All incoming mail is put in /var/spool/mail not scalix

Postby jmason1182 » Wed Jul 11, 2007 5:39 pm

Ok, I'll gladly give you any and all config files to get this up and running. I love the interfaces, the admin tools, and I'm even shocked that I see utils and scripts for things like checking all permissions!

BUT I am still having issues sending/receiving email! Not necessarily internally, but when the Scalix instance on port 25 picks up an email, it handles it as it should, then it gets to that SMTPFILTER=TRUE command and so it goes over to my sendmail which runs clamav on it, then mailwasher on it.

So I see it in maillog, I see it all looking great...... BUT THAT'S IT! Oh drat... it goes through everything, headers are updated as they should be, everything is great. But sendmail puts it into /var/spool/mail/$user. So Scalix never gets the message back....

SO, below is my sendmail.mc (and yes I grep Scalix in sendmail.cf and it is there). Also, my sendmail and scalix are harmonious as far as lsof -i:25 reports. Also included below is my smtpd.cfg.

Now, a side note. I have three domains.... one internal (mydomain.local) and two external (mylongdomain.com and mydomain.com) but only one server and so I need to accept all three domains and masquarade as mylongdomain.com. I know... it was a dumb decision made in 1996 to have that long domain name and now we can't get away from it!

So without further ado: sendmail.mc: (note: I've tried it with and without the MAILER(procmail))

Code: Select all

divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
define(`confLOG_LEVEL', `9')dnl
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
LOCAL_DOMAIN(`localhost.localdomain')
LOCAL_DOMAIN(`mydomain.local')
LOCAL_DOMAIN(`mylongdomain.com')
LOCAL_DOMAIN(`mydomain.com')
MASQUERADE_AS(`mylongdomain.com')
FEATURE(masquerade_envelope)
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(localhost)dnl
MASQUERADE_DOMAIN(localhost.localdomain)dnl
MASQUERADE_DOMAIN(mydomain.local)dnl
MASQUERADE_DOMAIN(mydomain.com)dnl
MASQUERADE_DOMAIN(mylongdomain.com)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
MAILER(scalix)dnl
INPUT_MAIL_FILTER(`clmilter',   `S=local:/var/run/clamav/milter/clamav-milter.sock, F=T, T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS',        `clmilter')dnl
INPUT_MAIL_FILTER(`mailwasher_server',  `S=unix:/var/run/mwserver/mpd.sock, F=T, T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS',        `mailwasher_server')dnl


And here's my smtpd.cfg:

Code: Select all

EXTENSIONS=AUTH,DSN,8BITMIME
LOCAL_NAMES=thishost.mydomain.local
LOCAL_NAMES=mail.mydomain.local
LOCAL_NAMES=mail.mylongdomain.com
LOCAL_NAMES=mail.mydomain.com
LOCAL_NAMES=mydomain.local
LOCAL_NAMES=mylongdomain.com
LOCAL_NAMES=mydomain.com
SMTP=ON
SUBMIT=OFF
RELAY Log_Accept 127.0.0.1
RELAY Log_Accept mail.mydomain.local
RELAY Log_Accept thishost.mydomain.local
RELAY Log_Accept mylongdomain.com
RELAY Log_Accept mydomain.com
RELAY Log_Reject ALL
RECIPIENT Log_Reject *@*@*
RECIPIENT Log_Reject *%*
RECIPIENT Log_Reject *!*
RECIPIENT Log_Reject *#*@*
AUTH_SUCCESS Header .mydomain.local
AUTH_SUCCESS Accept ALL
AUTH_MISMATCH Log_Header LOCAL
AUTH_MISMATCH Log_Header ALL
SMTPFILTER=TRUE
[SUBMIT]
[LMTP]


Hopefully that gives enough info to at least get us started. if you want my rediculously long maillog, I'll let you have it... but I promise it's nothing different from my old sendmail server that was flawless... ok... close to flawless.

Oh yeah, and I am running this on a Fedora 5, Pentium 4, 1.5GB RAM, and lots of disk space.... it was a great desktop til it was replaced.

Any and all help is not only appreciated, it is very much needed!

jmason1182
Posts: 55
Joined: Wed Jul 11, 2007 4:11 pm

Postby jmason1182 » Wed Jul 11, 2007 5:55 pm

Because I bet someone will ask for it:

Code: Select all

[root@thishost mail]# lsof -i:25
COMMAND    PID USER   FD   TYPE DEVICE SIZE NODE NAME
omsmtpd  23579 root    4u  IPv4  95525       TCP thishost.mydomain.local:smtp (LISTEN)
sendmail 23774 root    4u  IPv4  96484       TCP localhost.localdomain:smtp (LISTEN)


Code: Select all

[root@thishost mail]# omstat -a
PC Monitor                    Started        NON-STOP       0
Directory Relay Server        Started        16:14:07       
Notification Server           Started        16:14:07       0
Shared memory daemon          Started        NON-STOP       
Notification Monitor          Started        NON-STOP       
Session Monitor               Started        NON-STOP       
Indexer                       Started        NON-STOP       
Stats Daemon                  Started        NON-STOP       
Container Access Monitor      Started        NON-STOP       
Item Structure Server         Stopped                       
Database Monitor              Started        16:14:07       
Licence Monitor Daemon        Started        NON-STOP       
LDAP Daemon                   Started        16:14:07       
Queue Manager                 Started        NON-STOP       
Item Delete Daemon            Started        NON-STOP       
IMAP Server Daemon            Started        16:14:07       
SMTP Relay                    Started        16:17:07       
Mime Browser Controller       Started        16:14:07       
Event Server                  Started        16:14:07   




Code: Select all

[root@thishost  mail]# lsof -i:587
[root@thishost  mail]#


And yes, I am logging a whole lot (the firewall is restricting all my tests to my own PC at home, so right now I'm the only one who can get to it thus there isn't a lot of traffic) I wanted to make sure I could see it all. The SMTPD relay is reporting lots of the following (which is correct since it should relay for dumbrelay.noexist)

Code: Select all

REPORT SMTP Relay (SMTPD Relay Pr) 07.11.07 14:51:37
[OM.DMON 2172] SMTP: Rejected relay attempt from someone@datascension.com at 62.10.208.167 to joeblow@dumbrelay.noexist
 
REPORT SMTP Relay (SMTPD Relay Pr) 07.11.07 14:57:13
[OM.DMON 2172] SMTP: Accepted relay attempt from someone@datascension.com at 65.54.246.104 to joeblow@mylongdomain.com
 


(and yes, there are LOTS of those.... one for each of the respective test emails I've sent. Like I said, it appears as though it is ALL correct.... but I think the problem is connecting the SMTP Relay to sendmail itself.

OH and I almost forgot, the swa.properties file looks like this:

Code: Select all

swa.version=11.0

swa.email.domain=mydomain.local
swa.email.imapServer=thishost.mydomain.local
swa.email.smtpServer=thishost.mydomain.local
swa.email.userNameIncludesDomain=false
...


And lastly.... my hostname for these purposes is: "thishost.mydomain.local" and I have a DNS entry of mail.mydomain.local going to the same IP address, and then the other domains have host entries of mail.mylongdomain.com and mail.mydomain.com pointing to the same internal IP address (Natted at the firewall, so my DNS is only internal.... dang network-solutions....)

Anyway. And all my problems are both in outlook, thunderbird, thunderbird in linux, and swa. That's what led me to go FIND the message.... and I found it in /var/spool/mail/$user as though scalix wasn't even there.

jmason1182
Posts: 55
Joined: Wed Jul 11, 2007 4:11 pm

Postby jmason1182 » Wed Jul 11, 2007 5:56 pm

Sorry. I am long winded. Please don't make me beg... I need help!!

:cry: [/b]

jmason1182
Posts: 55
Joined: Wed Jul 11, 2007 4:11 pm

Postby jmason1182 » Wed Jul 11, 2007 5:59 pm

I hate forgetting stuff.....

Another reason I went looking for the mail message was my QUEUES ARE EMPTY. Every one of them. I can see hundreds of total messages processed... but not a single email is still in the queue for me to view. It is FAST at getting them out and passed on.

Oh, and at the moment I can't get any mail to be sent out via swa or smtp (except by manually telnetting..... weird)

jmason1182
Posts: 55
Joined: Wed Jul 11, 2007 4:11 pm

anybody?

Postby jmason1182 » Thu Jul 12, 2007 8:36 am

Anyone?

jaime.pinto
Scalix Star
Scalix Star
Posts: 709
Joined: Fri Feb 23, 2007 6:50 pm
Location: Toronto - Canada

Postby jaime.pinto » Thu Jul 12, 2007 8:45 am

It looks like scalix is not the one processing emails.
What do you get when you do this?
telnet scalixserver 143
Image Jaime
||||||||||||||||||||||||||||||||||||||||

Derek
Posts: 169
Joined: Fri Mar 24, 2006 4:53 pm
Contact:

Postby Derek » Thu Jul 12, 2007 9:22 am

What emails address exist for your test user?

I think you will need the following:

joeblow@mydomain.com (primary)
joeblow@mylongdomain.com (alias)
joeblow@mydomain.local (alias)

jmason1182
Posts: 55
Joined: Wed Jul 11, 2007 4:11 pm

Postby jmason1182 » Thu Jul 12, 2007 10:05 am

Both, of the following show to be the scalix server (imap or smtp respectively)

Code: Select all

telnet thishost 143
Trying 10.20.20.58...
Connected to thishost.mydomain.local (10.20.20.58).
Escape character is '^]'.
* OK Scalix IMAP server 11.1.0.10849 ready on thishost.mydomain.local


 telnet thishost 25
Trying 10.20.20.58...
Connected to thishost.mydomain.local (10.20.20.58).
Escape character is '^]'.
220 thishost.mydomain.local ESMTP Scalix SMTP Relay 11.1.0.10849; Thu, 12 Jul 2007 09:02:45 -0500 (CDT)



I can't add the aliases for the other domains because I have just the mydomain.local in the drop down for my users. How can I add the other domains to the list of known domains?

I originally was planning on having an SMTP gateway machine that would just map all addresses as mydomain.local on the inside and map then to mylongdomain.com before sending to the outside.... would that be more simple to do? I figured i could have still get this server's sendmail doing it so i don't need another machine.

jmason1182
Posts: 55
Joined: Wed Jul 11, 2007 4:11 pm

Yooray!!!

Postby jmason1182 » Thu Jul 12, 2007 10:19 am

Alright!!! A resolution for the first issue...

You guys are geniuses. Ok, so for anyone else with this problem, login to the SAC with you admin account.

Go to Settings->Administration and Add all your domains you want to include in the Local Domains list. I had put them into the smtpd.cfg, but they were not in the SAC.

Then, I used sxconfig to generate the auto-create addresses (I like first inital followed by the last name in all lowercase, so I use gl for my username_auth)

Code: Select all

 
sxconfig --set -t orniasys.name_part_1='"C" <gl>' -t orniasys.domain_part_1='mydomain.local'
sxconfig --set -t orniasys.name_part_2='"C" <gl>' -t orniasys.domain_part_2='mydomain.com'
sxconfig --set -t orniasys.name_part_3='"C" <gl>' -t orniasys.domain_part_3='mylongdomain.com'
 sxconfig --set -t general.usrl_authid_rule='gl@'


Then, I created a test user, it came up with all the addresses it was supposed to in the aliases, and now VIOLA! it works!

The SMTPD Relay server was doing exactly as it was meant to.... seeing a domain name that it should accept, then passing the message on to the next step... the local sendmail running on 127.0.0.1:25. This sendmail accepted it, ran it all, and it's in it's "include" list of domains to receive. So it put it where it goes.

BUT in order for scalix to get and keep the message, you have to have the domain name OR NAMES you want to receive in the SAC for your server domain names.

NOW.... how to get the server to send.... (next issue will be another thread)


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 2 guests