FC4 Install for local access only FQDN issues....

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

mrhumphreys
Posts: 50
Joined: Fri Oct 07, 2005 7:38 am

Postby mrhumphreys » Mon Oct 31, 2005 8:46 am

Many thanks for clearing that up. I understand a bit more now.

Fetchmail is picking up the email fine now, and delivering it to the local user - Matthew Humphreys - as that where it should go,or should it go to the scalix user?

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Mon Oct 31, 2005 8:55 am

could you please post your fetchmailrc?

it is important that you deliver mail via SMTP, and that you specify the

smtphost

parameter in your fetchmailrc, with your hostname given as your full hostname (like scalix.,blahblah.int, NOT localhost!)

cheers,
Florian.
Florian von Kurnatowski, Die Harder!

mrhumphreys
Posts: 50
Joined: Fri Oct 07, 2005 7:38 am

Postby mrhumphreys » Mon Oct 31, 2005 9:16 am

poll mailhost.spamjab.com
proto pop3
user "XXXXX"
pass "XXXXX"
keep
fetchall
poll mail.emsolutions.co.uk
proto pop3
user "XXXXX"
pass "XXXXX"
keep
fetchall

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Mon Oct 31, 2005 10:25 am

yes.

this does not contain any smtphost line; therefore, fetchmail will deliver the mail it gets from the pop server to the sendmail and to the users local mailbox. you will need to add the necessary information to deliver via smtp to the smtp relay. i believe this should be

Code: Select all

smtphost my.hostname.com


Hope this helps,
F.
Florian von Kurnatowski, Die Harder!

mrhumphreys
Posts: 50
Joined: Fri Oct 07, 2005 7:38 am

Postby mrhumphreys » Mon Oct 31, 2005 10:52 am

Thats helped.

fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-scalix.ems.int Hello scalix.ems.int [192.168.0.180], pleased to meet you
fetchmail: SMTP< 250-AUTH GSSAPI DIGEST-MD5 PLAIN CRAM-MD5 LOGIN
fetchmail: SMTP< 250-AUTH=LOGIN
fetchmail: SMTP< 250-DSN
fetchmail: SMTP< 250 8BITMIME
fetchmail: SMTP> MAIL FROM:<matthew.humphreys@xxxx.com>
fetchmail: SMTP< 250 matthew.humphreys@xxxx.com... Sender ok
fetchmail: SMTP> RCPT TO:<root@scalix.ems.int>
fetchmail: SMTP< 250 Ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself (relay)
#************************************************************fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 Ok
not flushed
fetchmail: POP3> QUIT


The above email was addressed to matthew.humphreys@emsolutions. co. uk which is setup in scalix, but the email ended up on the root mail folder?


My fetchmailrc is..


poll mailhost.spamjab.com
proto pop3
user "xxx""
pass "xxx"
keep
fetchall
smtphost scalix.ems.int

poll mail.emsolutions.co.uk
proto pop3
user "xxx"
pass "xxx"
keep
fetchall
smtphost scalix.ems.int



Cheers

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Mon Oct 31, 2005 11:14 am

Yes, and according to "man fetchmail" this is expected behaviour as fetchmail will normally deliver to the user under which it is run.

you can specify the smtpname option in each block to tell it to which user account certain messages should be delivered.

--f .
Florian von Kurnatowski, Die Harder!

natkins
Scalix
Scalix
Posts: 37
Joined: Thu Jul 10, 2003 2:21 am
Location: San Mateo, CA
Contact:

Postby natkins » Mon Oct 31, 2005 11:54 am

kevjs, about that Exception in the log, please read the FC4 sticky post at the top of this forum. Also, Java SDK 1.5 is not supported in the current release, please install Java 1.4.2.

Thanks,

Nick.

mrhumphreys
Posts: 50
Joined: Fri Oct 07, 2005 7:38 am

Postby mrhumphreys » Mon Oct 31, 2005 12:42 pm

Thanks to Florian support I can now recieve incoming mail, and send mail between internal users.

What I can't do is send any mail to external users.

Using webmin, I've added my isp's smtp outgoing server to the outgoing host within the config. My host used smtp authorisation for outgoing mail, but I cannot find where to set this within webmin or scalix.

I've also had a look in maillog and messages for possible clues, but they are empty!

One last bit of help please!


Matthew

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Mon Oct 31, 2005 12:46 pm

puh, that's not going to be soo simple.

basically it is sendmail configuration and i don't have the full details right now.

i believe you'll need to setup something in /etc/mail, like AuthConfig or so.

Please google for sendmail and authentication, you should find some docs. If you can't find anything, drop me another line here and i'll see what i can do!

-- f.
Florian von Kurnatowski, Die Harder!

mrhumphreys
Posts: 50
Joined: Fri Oct 07, 2005 7:38 am

Postby mrhumphreys » Mon Oct 31, 2005 12:52 pm

florian wrote:puh, that's not going to be soo simple.


Hmmm,

I've been googling for a while, and phoning a few people up, but no-one seems very sure....

Where is the best file to check to see if it is this that is causing outgoing email to fail?

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

Postby ScalixSupport » Mon Oct 31, 2005 12:54 pm

mrhumphreys wrote:Thanks to Florian support I can now recieve incoming mail, and send mail between internal users.

What I can't do is send any mail to external users.

Using webmin, I've added my isp's smtp outgoing server to the outgoing host within the config. My host used smtp authorisation for outgoing mail, but I cannot find where to set this within webmin or scalix.

I've also had a look in maillog and messages for possible clues, but they are empty!

One last bit of help please!


Matthew


Uncomment or add the following options into your sendmail.mc (usually found in /etc/mail/cf/cf/ )

Code: Select all

define(`confAUTH_OPTIONS', `A')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl
FEATURE(`authinfo',`hash -o /etc/mail/authinfo.db')dnl


Once the above is completed, rebuild your sendmail.cf file using:

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

Enter the paths for your specific site configuration as necessary in the above command.

Now, run omsendin

Next we need to create the authinfo file which will contain the user credentials for logging into the mailserver. Create a file called 'authinfo' in /etc/mail/ For security reasons, this file should be chmod 400 and owned by root if you are running Sendmail as root. If you are using an alternate UID/GID for Sendmail then make sure that the file's group owner matches and set the file chmod 440. In the entry below, replace userID with your SBCGlobal username and password with your password.

Following is the syntax for the file (all on one line):

AuthInfo:smtp-sbc-v1.mail.vip.sc5.yahoo.com "U:userID@sbcglobal.net"
"I:userID@sbcglobal.net" "R:sbcglobal.net" "P:password" "M:PLAIN"


The mailserver hostname is entered right after AuthInfo: in this file. Sendmail looks at the DNS A record for the host it is connecting to and parses the authinfo file looking for this hostname to match for credentials to use. If you do an nslookup for smtp.sbcglobal.yahoo.com you will notice that it is an alias or CNAME to the hostname entered above. If this ever changes, you will have to change this hostname in your authinfo file to match and rebuild the map file and restart sendmail. If you used smtp.sbcglobal.yahoo.com as the server name in the authinfo file, you would never match credentials and email would bounce from SBC for no authentication.

Once you have saved this file you need to build the authinfo map file.

makemap hash /etc/mail/authinfo < /etc/mail/authinfo

Finally, restart sendmail.

http://www.broadbandreports.com/faq/11247

The last steps regarding authentication are only necessary for remote SMTP MTAs that require authentication. Usually, this is not necessary in host to host communication.

Cheers,

Sascha.

mrhumphreys
Posts: 50
Joined: Fri Oct 07, 2005 7:38 am

Postby mrhumphreys » Mon Oct 31, 2005 1:08 pm

ScalixSupport wrote:
Uncomment or add the following options into your sendmail.mc (usually found in /etc/mail/cf/cf/ )

Code: Select all

define(`confAUTH_OPTIONS', `A')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl
FEATURE(`authinfo',`hash -o /etc/mail/authinfo.db')dnl


Once the above is completed, rebuild your sendmail.cf file using:

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




Thanks Sascha.

Uncommented the line no problem.

I did a locate m4.cf to see where things were, are it didn't find anything!

How do create a m4.cf file?

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

Postby ScalixSupport » Mon Oct 31, 2005 1:25 pm

mrhumphreys wrote:
ScalixSupport wrote:
Uncomment or add the following options into your sendmail.mc (usually found in /etc/mail/cf/cf/ )

Code: Select all

define(`confAUTH_OPTIONS', `A')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl
FEATURE(`authinfo',`hash -o /etc/mail/authinfo.db')dnl


Once the above is completed, rebuild your sendmail.cf file using:

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




Thanks Sascha.

Uncommented the line no problem.

I did a locate m4.cf to see where things were, are it didn't find anything!

How do create a m4.cf file?


OK, Just run m4, no m4.cf needed. Locate your sendmail.cf and run

m4 /etc/sendmail.cf >/tmp/sendmail.cf

then copy back to original location. Then restart sendmail, if all works well, it should restart. If not, reuse the backup file you made before you followed all the instructions above ;-)

mrhumphreys
Posts: 50
Joined: Fri Oct 07, 2005 7:38 am

Postby mrhumphreys » Mon Oct 31, 2005 1:50 pm

OK.

That went OK.

except... when I start sendmail I get an error.

[root@scalix mail]# /etc/rc.d/init.d/sendmail start
Starting sendmail: 554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
[FAILED]


omsendin gave..


[root@scalix mail]# omsendin
WARNING: [OMINST 255] Unable to determine where to put Scalix
WARNING: lines in sendmail configuration file

Unable to find ruleset 0
WARNING: [OMINST 279] Modify /opt/scalix/newconfig/om_sendmail.cf. Use the script
WARNING: /opt/scalix/bin/omsendin for guidance.
[root@scalix mail]#


my authentication with my host is just username and password - no domain etc. Do I still need all the options in

AuthInfo:smtp-sbc-v1.mail.vip.sc5.yahoo.com "U:userID@sbcglobal.net"
"I:userID@sbcglobal.net" "R:sbcglobal.net" "P:password" "M:PLAIN"

or could I use

AuthInfo:smtp-sbc-v1.mail.vip.sc5.yahoo.com "U:userID@sbcglobal.net"
"I:userID@sbcglobal.net" "P:password" "M:PLAIN"

Cheers


Matthew

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

Postby ScalixSupport » Mon Oct 31, 2005 2:36 pm

mrhumphreys wrote:OK.

That went OK.



Not sure about that ... OK, now is a good time to restore that backed up sendmail.cf.

Let's work on this more tomorrow ;-)

Cheers,

Sascha.


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 6 guests