Incorrect From address specified in imails

Discuss the Scalix Outlook MAPI Interface

Moderators: ScalixSupport, admin

BaldBoy
Posts: 141
Joined: Fri May 19, 2006 12:45 pm

Re: Incorrect From address specified in imails

Postby BaldBoy » Tue Jun 15, 2010 10:51 am

You should access your Scalix Administration Console (SAC) and check this user has not the wrong email address in any of it's aliases.
It's likely you will find that mail address to be first on the list: in fact when you use Outlook Connector the outgoing mail address is always the first one in the list.

ls-al
Scalix Star
Scalix Star
Posts: 510
Joined: Tue Jun 29, 2004 8:28 am
Location: Leipzig, Germany
Contact:

Re: Incorrect From address specified in imails

Postby ls-al » Wed Jun 16, 2010 2:15 am

In most cases this is related to problems with the CDA-service. Check if its running. You can also recreate the CDA for SYSTEM (Outlook clients need to be restarted afterwards).

Code: Select all

[root@test ~]# omstat -s | grep CDA
CDA Server                    Started        06.02.10       0         
[root@test ~]# omshowcda
**  SYSTEM           Shared          15 minutes   06.09.10 07:52:35

[root@test ~]# omdelcda -d SYSTEM
[OM 28656] Configuration record removed

[root@test ~]# omaddcda -d SYSTEM
[OM 28655] Configuration record added

[root@test ~]# omshowcda
**  SYSTEM           Shared          15 minutes   0

[root@test ~]# omexeccda
Fetching all entries from Directory  ... Please wait
Sorting Directory entries            ... Please wait
Building Directory Access Tables     ... Please wait
[root@test ~]# omshowcda
**  SYSTEM           Shared          15 minutes   06.16.10 06:14:39

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Re: Incorrect From address specified in imails

Postby les » Wed Jun 16, 2010 9:38 am

poullindholm wrote:
I have now investigated the issue more and the mail that is received in the other end has the following headers:
Disposition-Notification-To: "Kristoffer Rasmussen" <kr@demo.com>
From: Kristoffer Rasmussen <Rasmussen@mail.demo.com>

Is there anyway to monitor / log the communication details between the Outlook Connector and the Scalix Server?


You said it worked in webmail fine. Is that true for sending mail internally and externally?

Also for Outlook, does the email address appear correct when you send to internal users as opposed to external users?

There may be something wrong in the sendmail setup. Have you got your domain listed in /etc/mail/local-host-names?

What settings have you changed on in the sendmail.mc?
Regards,

Les Stott

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Re: Incorrect From address specified in imails

Postby les » Wed Jun 16, 2010 5:49 pm

poullindholm wrote:Hi

Iøm sorry to say that I'm not sure precisely what has been changed in my sendmail.mc file:-(
After a succesfull test-period of Scalix I was somewhat disappointed in the actual settings available in the SMTP engine. This caused me to make Scalix forward all mails to Postfix (on another server) for processing.

Anyway - loca-hostnames contains the relevant hostnames and a lot of other domains/hosts that is not relevant for these particular users.
It does however appear that the configuration about this particvular file is not enabled. What does it actually do?

Sending both Internal and External mail via Webmail works perfectly.
Sending Internal "Scalix Connector for Outlook" works perfectly.
Sending External "Scalix Connector for Outlook" does not work.


/etc/mail/local-host-names in a scalix environment MUST ONLY contain your scalix email domain. No host names. i.e.

if you have a scalix server setup as demo.com on the host mail.demo.com you would only add demo.com to local-host-names. you don't add mail.demo.com. If your scalix server has a second domain, say demo2.com then you add demo2.com to /etc/mail/local-host-names.

how did you set scalix up to forward to postfix? Normally scalix uses sendmail to send, did you do a SMART_HOST in sendmail.mc?

This problem could also be to do with your postfix server. when you send a message through watch the logs on your postfix box aswell. What do the logs show for the email transaction in terms of from addresses? i.e. do they look like kr@demo.com when they arrive at postfix? or do they look like kr@mail.demo.com when they get to postfix? This should help to pinpoint where your problem lies.
Regards,

Les Stott

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Re: Incorrect From address specified in imails

Postby les » Thu Jun 17, 2010 3:03 am

poullindholm wrote:Hi

I will try changing the local-host-names later.

I have made changes to submit.mc in order to let sendmail submit the mail to postfix instead of letting sendmail send the mail.

I have the domain-names listed in the relay-domains file.

I have looked at my postfix-installation, which appears to be fine. Also - everything works just fine and the log shows the correct mail-address.

I'm quite lost with this - since only the Scalix-Connector for outlook causes the problem.


Scalix Webmail has its own setting for smtp server. this could have neen changed which is why it may work and scalix connect for outlook not work. The smtp server is set via /var/opt/scalix/??/webmail/swa.properties. Scalix connect for outlook just uses the scalix server, which in turn sends via sendmail and theoretically by using your submit.mc settings onto the postfix box. had you changed the webmail properties to perhaps deliver directly to the postfix server?

Strange that you have changed submit.mc and relay-domains, i've never had to do that. I'd just set SMART_HOST in sendmail.mc and sendmail will forward all mail to your other server. Sounds like its setup more complicated than it should be.

I think that to solve this you are going to need to post your configs and sample mail log entries from sendmail on the scalix server and on the postfix server.
Regards,

Les Stott

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Re: Incorrect From address specified in imails

Postby les » Thu Jun 17, 2010 5:26 am

poullindholm wrote:Hi

Yes I did change the setting in swa.properties!

Just setting the SMART_HOST didn't work - it was my preferred method - but I simply could not get it to work at the time.
Perhaps this was because I just dont like sendmail:-)

Anyway - i have set up Address rewrite on my postfix server from rasmussen@mail.demo.com to kr@demo.com - and everything seams to be working just fine.

I would still like to fix this as it is causing extra maintainence and double workload.

My configs - which ones do you think you require?


Well, knowing that.....i'd revert back to sendmail with a SMART_HOST and get that right. Technically you don't really need the postfix box unless its doing antispam/antivirus filtering for your network etc.

1. revert submit.mc back to defaults
2. setup sendmail.mc (inc SMART_HOST)
3. ensure local-host-names is correct
4. make -c /etc/mail; service sendmail restart
5. revert the swa back to use the scalix smtp server
5. test things.

On the other hand.....to actually figure where this is wrong.....

post the following:

1. /etc/mail/local-host-names
2. /etc/mail/submit.mc
3. /var/opt/scalix/??/s/sys/smtpd.cfg
4. Transaction of a message being sent from /var/log/maillog on the scalix box
5. Transaction of that mail message being received by the postfix box /var/log/maillog.

I can post you a quick run through of setting up scalix/sendmail with a smart host and provide default config files from a centos/redhat system.
Regards,

Les Stott


Return to “Scalix Connect for MS Outlook”



Who is online

Users browsing this forum: No registered users and 3 guests