Problem with sending Emails

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

nillo

Problem with sending Emails

Postby nillo » Fri May 04, 2007 5:51 am

Hey guys, same Problem as mentioned often, but different solution I think. First off all, I've checked all the posts and tried the solutions discribed there, but they didn't help at all.
Running Scalix 1103 on a SuSE Enterprise 9 machine. Everything works fine, also receiving mails. Here's the output of omshowlog, if other logs are needed please post.

Code: Select all

WARNING                        Shared memory (Shared memory ) 05.04.07 11:32:25
[OM 24142] Conversion from SJIS to ISO8859_1 not found.


WARNING                        Shared memory (Shared memory ) 05.04.07 11:32:25
[OM 24142] Conversion from ISO2022CN to ISO8859_1 not found.


I don't think this deals with my Emails...
Scalix SMTP and all other services are running fine...

Please Help me

nillo

Postby nillo » Mon May 07, 2007 12:57 pm

No one has any hint?

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

Postby ScalixSupport » Tue May 08, 2007 1:57 am

Hi Nillo!

In order to prevent the internal format being used the ~/sys/mime.cs file can be extended
to have an explicit mapping, for ex. ISO-8859-2 (and any more ISO-8859-* values that
may be used). So for ISO-8559-2, add the line "ISO-8859-2<tab>ISO-8859-2" after the
line for ISO8859_1 to give a mime.cs file that looks like this:

UNIXJIS ISO-2022-JP
KSC5601 EUC-KR
KSC5601 ks_c_5601-1987
HZGB2312 HZ-GB-2312
ISO8859_1 ISO-8859-1
ISO-8859-2 ISO-8859-2
UTF7 UTF-7
UTF7 UTF7

Nothing needs to be restarted for this to take effect.

In your case, Scalix Server was unable to find a conversion for SJIS and ISO2022CN,
between Scalix character set names and RFC 1521 (MIME) character set names, if you
know the character set that is used for these, we can add the conversion rule for them
in mime.cs file. I saw my resources and found that for SJIS and ISO2022CN, it should be:

Code: Select all

SJIS<tab>Shift_JIS
ISO2022CN<tab>ISO-2022-CN

Note: <tab> is notation of pressing tab key to separate the two character set names.

Check if this helps.

Thanks!
Subir

nillo

Postby nillo » Tue May 08, 2007 2:06 pm

Hi Subir!
Thanks for the answer!

I added the two entries in mime.cs but it didn't help.
But I have news:
The problem is, that sendmail and omsmtpd don't run together. When I kill omsmtpd and start sendmail my messages are sent. But i cannot run them simultaneously. This thread helped :
http://www.scalix.com/forums/viewtopic.php?t=7040&highlight=sendmail
Now a question: How do I get a new sendmail.cf? I cannot "make" one...
and with

Code: Select all

m4 sendmail.mc > sendmail.cf
i get

Code: Select all

Cannot open /usr/share/sendmail-cf/mailer/scalix.m4: No such file or directory


Thanks

Nillo

nillo

Postby nillo » Wed May 09, 2007 4:33 am

Hi Subir!

Got the m4 file, found it on a different place and copied it.
But i cannot get Sendmail and omsmtpd run at the same time. Copied the sendmail.mc from the other thread, it compiled me the sendmail.cf but it still doesn't work.
I get only started omsmtpd or sendmail, but not both at the same time.

Here's the file:

Code: Select all

divert(-1)dnl
dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
dnl # installed and then performing a
dnl #
dnl #     make -C /etc/mail
dnl #
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
dnl #
dnl # default logging level is 9, you might want to set it higher to
dnl # debug the configuration
dnl #
dnl define(`confLOG_LEVEL', `9')dnl
dnl #
dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl #
define(`SMART_HOST',`mail.mycompany.biz')
dnl #
define(`confDEF_USER_ID',``8:12'')dnl
dnl define(`confAUTO_REBUILD')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
dnl #
dnl # The following allows relaying if the user authenticates, and disallows
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
dnl #
dnl define(`confAUTH_OPTIONS', `A p')dnl
dnl #
dnl # PLAIN is the preferred plaintext authentication method and used by
dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do
dnl # use LOGIN. Other mechanisms should be used if the connection is not
dnl # guaranteed secure.
dnl # Please remember that saslauthd needs to be running for AUTH.
dnl #
dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl #
dnl # Rudimentary information on creating certificates for sendmail TLS:
dnl #     cd /usr/share/ssl/certs; make sendmail.pem
dnl # Complete usage:
dnl #     make -C /usr/share/ssl/certs usage
dnl #
dnl define(`confCACERT_PATH',`/etc/pki/tls/certs')dnl
dnl define(`confCACERT',`/etc/pki/tls/certs/ca-bundle.crt')dnl
dnl define(`confSERVER_CERT',`/etc/pki/tls/certs/sendmail.pem')dnl
dnl define(`confSERVER_KEY',`/etc/pki/tls/certs/sendmail.pem')dnl
dnl #
dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's
dnl # slapd, which requires the file to be readble by group ldap
dnl #
dnl define(`confDONT_BLAME_SENDMAIL',`groupreadablekeyfile')dnl
dnl #
dnl define(`confTO_QUEUEWARN', `4h')dnl
dnl define(`confTO_QUEUERETURN', `5d')dnl
dnl define(`confQUEUE_LA', `12')dnl
dnl define(`confREFUSE_LA', `18')dnl
define(`confTO_IDENT', `0')dnl
dnl FEATURE(delay_checks)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
dnl #
dnl # The following limits the number of processes sendmail can fork to accept
dnl # incoming messages or process its message queues to 12.) sendmail refuses
dnl # to accept connections once it has reached its quota of child processes.
dnl #
dnl define(`confMAX_DAEMON_CHILDREN', 12)dnl
dnl #
dnl # Limits the number of new connections per second. This caps the overhead
dnl # incurred due to forking new sendmail processes. May be useful against
dnl # DoS attacks or barrages of spam. (As mentioned below, a per-IP address
dnl # limit would be useful but is not available as an option at this writing.)
dnl #
dnl define(`confCONNECTION_RATE_THROTTLE', 3)dnl
dnl #
dnl # The -t option will retry delivery if e.g. the user runs over his quota.
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
dnl #
dnl # For using Cyrus-IMAPd as POP3/IMAP server through LMTP delivery uncomment
dnl # the following 2 definitions and activate below in the MAILER section the
dnl # cyrusv2 mailer.
dnl #
dnl define(`confLOCAL_MAILER', `cyrusv2')dnl
dnl define(`CYRUSV2_MAILER_ARGS', `FILE /var/lib/imap/socket/lmtp')dnl
dnl #
dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
DAEMON_OPTIONS (`Port=smtp,Addr=127.0.0.1, Name=MTA')
dnl #
dnl # The following causes sendmail to additionally listen to port 587 for
dnl # mail from MUAs that authenticate. Roaming users who can't reach their
dnl # preferred sendmail daemon due to port 25 being blocked or redirected find
dnl # this useful.
dnl #
dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
dnl #
dnl # The following causes sendmail to additionally listen to port 465, but
dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed
dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't
dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS
dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps
dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.
dnl #
dnl # For this to work your OpenSSL certificates must be configured.
dnl #
dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
dnl #
dnl # The following causes sendmail to additionally listen on the IPv6 loopback
dnl # device. Remove the loopback address restriction listen to the network.
dnl #
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
dnl #
dnl # enable both ipv6 and ipv4 in sendmail:
dnl #
dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
dnl #
dnl # We strongly recommend not accepting unresolvable domains if you want to
dnl # protect yourself from spam. However, the laptop and users on computers
dnl # that do not have 24x7 DNS do need this.
dnl #
FEATURE(`accept_unresolvable_domains')dnl
dnl #
dnl FEATURE(`relay_based_on_MX')dnl
dnl #
dnl # Also accept email sent to "localhost.localdomain" as local email.
dnl #
LOCAL_DOMAIN(`mail.mycompany.biz')
dnl #
dnl # The following example makes mail from this host and any additional
dnl # specified domains appear to be sent from mydomain.com
dnl #
MASQUERADE_AS(`mail.mycompany.biz')
dnl #
dnl # masquerade not just the headers, but the envelope as well
dnl #
FEATURE(masquerade_envelope)
dnl #
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
dnl #
dnl FEATURE(masquerade_entire_domain)dnl
dnl #
dnl MASQUERADE_DOMAIN(localhost)dnl
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
FEATURE(allmasquerade)
MAILER(smtp)dnl
MAILER(procmail)dnl
dnl MAILER(cyrusv2)dnl
MAILER(scalix)dnl


Please help me I think there's only a small step left...

Thanks Nillo

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

Postby ScalixSupport » Wed May 09, 2007 6:26 am

Hi!

Check if RPM for m4 is installed, also if it is installed try running the command

Code: Select all

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

then run command

Code: Select all

omsendin

to make Scalix changes take effect in sednmail.cf.

Hope this helps.

Thanks,
Subir

nillo

Postby nillo » Wed May 09, 2007 11:38 am

Hi Subir!
Yes m4 is installed and I run omsendin without errors. But sendmail and omsmtpd still won't run simultaneously.
Should I post other config files or logs?

Thanks Nillo

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

Postby ScalixSupport » Thu May 10, 2007 6:43 am

Hi Nillo!

Can you change the line in your sendmail.mc:

Code: Select all

DAEMON_OPTIONS (`Port=smtp,Addr=127.0.0.1, Name=MTA')

to be

Code: Select all

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Note the removed space before the "(" and then space replaced by the dnl at the end.

After this, rerun the following command sequence:

Code: Select all

cd /etc/mail
service sendmail stop
rm -f *.cf
m4 sendmail.mc > sendmail.cf
omsendin
service sendmail start


Please reply if this works.

Thanks,
Subir


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 4 guests

cron