LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-14-2008, 08:56 AM   #1
spokz
LQ Newbie
 
Registered: May 2008
Location: Poland
Distribution: Debian
Posts: 13

Rep: Reputation: 0
Postfix/Outlook Express problem


I have configured mail server (postfix/courier-imap) and everything works except sending mails using Outlook Express.

This is the log:
Quote:
Nov 14 14:39:40 me postfix/smtpd[23838]: connect from other.domain.org[12.23.34.45]
Nov 14 14:39:40 me postfix/smtpd[23838]: warning: other.domain.org[12.23.34.45]: SASL LOGIN authentication failed: authentication failure
Nov 14 14:39:40 me postfix/smtpd[23838]: lost connection after AUTH from other.domain.org[12.23.34.45]
Nov 14 14:39:40 me postfix/smtpd[23838]: disconnect from other.domain.org[12.23.34.45]
Postconf -n:
Quote:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
disable_vrfy_command = yes
inet_interfaces = all
inet_protocols = all
local_recipient_maps = $alias_maps
mailbox_size_limit = 0
mydestination =
mydomain = domain.org
myhostname = mail.domain.org
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost =
show_user_unknown_table_name = no
smtp_use_tls = no
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions = reject_rbl_client sbl-xbl.spamhaus.org
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_etrn_restrictions = reject
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_sender_domain, reject_non_fqdn_sender
smtpd_use_tls = no
strict_rfc821_envelopes = yes
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 5000
virtual_transport = virtual
virtual_uid_maps = static:5000
 
Old 11-14-2008, 10:48 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
How do you have the client setup for sending emails? From the logs, that would indicate the most likely cause with the authentication method used, etc.
 
Old 11-14-2008, 10:54 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
You can probably get away without choosing authentication in the client for sending by permitting your own network under mynetworks = 127.0.0.0/8 in your conf file as well.
 
Old 11-14-2008, 12:13 PM   #4
spokz
LQ Newbie
 
Registered: May 2008
Location: Poland
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: 0
Well, I can send mail via squirrelmail with this configuration.
After modifications:
Quote:
mynetworks = 127.0.0.0/8, localhost, localhost.$mydomain, $mydomain, mail.@mydomain
nothing changes. I still cannot send mails via mail client. This is IMAP server btw.

Any ideas?
 
Old 11-14-2008, 12:28 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally Posted by spokz View Post
Well, I can send mail via squirrelmail with this configuration.
After modifications:

nothing changes. I still cannot send mails via mail client. This is IMAP server btw.

Any ideas?
Well, you never stated what you're trying to use for your OE settings for sending? Squirrelmail will work since it's IMAP and it's on the localhost, since you have 127.0.0.0/8 configured for your mynetworks.

If your clients are on a local LAN configured like 192.168.x.x you can add that to your conf file like the 127.

Just add something like 192.168.0.0/16 so everyone configured on the local LAN with such IP can use the mail server to send emails through.
 
Old 11-14-2008, 01:26 PM   #6
spokz
LQ Newbie
 
Registered: May 2008
Location: Poland
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: 0
So webmail works.
But I want to connect to my IMAP server from any location thru mail clients like OE/Thunderbird and send mails. From what I see in logs, Client connects to the server but while trying to send mail, server denies it with the message displayed in first post in this thread.
And now, how to fix my server configuration to able external mail clients to send mails?

UPDATE.
Actually, now I can send mail thru OE but only to local maildirs (located at same server as postfix is run).
For example my mail is spokz@mydomain.org and I'm connected to IMAP mydomain.org server thru Outlook Express. I can send mail to test@mydomain.org but server denies to send mail to test@gmail.com.

Log output:
Quote:
Nov 14 19:43:55 spokz postfix/smtpd[25508]: connect from other.domain.org[12.23.34.45]
Nov 14 19:43:55 me postfix/smtpd[25508]: NOQUEUE: reject: RCPT from other.domain.org[12.23.34.45]: 554 5.7.1 <xxx@gmail.com>: Relay access denied; from=<xxx@mydomain.org> to=<xxx@gmail.com> proto=ESMTP helo=<xxxik>Nov 14 19:43:55 me postfix/smtpd[25508]: B317356C8: client=other.domain.org[12.23.34.45]
Nov 14 19:43:55 me postfix/cleanup[25511]: B317356C8: message-id=<24C04CFDF5074D249B3E9DF730284CD9@xxxik>
Nov 14 19:43:55 me postfix/qmgr[25370]: B317356C8: from=<xxx@mydomain.org>, size=1295, nrcpt=1 (queue active)
Nov 14 19:43:55 me postfix/smtpd[25508]: disconnect from other.domain.org[12.23.34.45]
Nov 14 19:43:56 me amavis[23320]: (23320-03) (!!) ask_av (ClamAV-clamd) FAILED - unexpected result: /var/lib/amavis/tmp/amavis-20081114T135814-23320/parts: lstat() failed. ERROR\n
Nov 14 19:43:56 me amavis[23320]: (23320-03) (!!) WARN: all primary virus scanners failed, considering backups
Nov 14 19:43:58 me imapd: Connection, ip=[::ffff:12.23.34.45]
Nov 14 19:43:58 me authdaemond: received auth request, service=imap, authtype=login
Nov 14 19:43:58 me authdaemond: authmysql: trying this module
Nov 14 19:43:58 me authdaemond: SQL query: SELECT username, "", password, '5000', '5000', '/home/vmail', maildir, concat(quota,'S'), name, "" FROM mailbox WHERE username = "xxx@mydomain.org"
Nov 14 19:43:58 me authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, address=xxx@mydomain.org, fullname=xxx yyy, maildir=mydomain.org/xxx@mydomain.org/, quota=0S, options=<null>
Nov 14 19:43:58 me authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, address=xxx@mydomain.org, fullnamee=xxx yyy, maildir=mydomain.org/xxx@mydomain.org/, quota=0S, options=<null>
Nov 14 19:43:58 me imapd: LOGIN, user=xxx@mydomain.org, ip=[::ffff:12.23.34.45], protocol=IMAP
Nov 14 19:44:18 me postfix/smtpd[25539]: connect from localhost[127.0.0.1]
Nov 14 19:44:18 me postfix/smtpd[25539]: A4BEA587E: client=localhost[127.0.0.1]
Nov 14 19:44:18 me postfix/cleanup[25511]: A4BEA587E: message-id=<24C04CFDF5074D249B3E9DF730284CD9@xxxik>
Nov 14 19:44:18 me postfix/qmgr[25370]: A4BEA587E: from=<xxx@mydomain.org>, size=1964, nrcpt=1 (queue active)
Nov 14 19:44:18 me postfix/smtpd[25539]: disconnect from localhost[127.0.0.1]
Nov 14 19:44:18 me amavis[23320]: (23320-03) Passed CLEAN, [12.23.34.45] [12.23.34.45] <xxx@mydomain.org> -> <xxx@mydomain.org>, Message-ID: <24C04CFDF5074D249B3E9DF730284CD9@xxxik>, mail_id: 6+8H2vK0NiiF, Hits: 5.59, queued_as: A4BEA587E, 22948 ms
Nov 14 19:44:18 me postfix/smtp[25512]: B317356C8: to=<xxx@mydomain.org>, relay=127.0.0.1[127.0.0.1]:10024, delay=23, delays=0.14/0.04/0.01/23, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=23320-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as A4BEA587E)
Nov 14 19:44:18 me postfix/qmgr[25370]: B317356C8: removed
Nov 14 19:44:18 me postfix/virtual[25540]: A4BEA587E: to=<xxx@mydomain.org>, relay=virtual, delay=0.21, delays=0.08/0.06/0/0.06, dsn=2.0.0, status=sent (delivered to maildir)
Nov 14 19:44:18 me postfix/qmgr[25370]: A4BEA587E: removed
Nov 14 19:45:12 me imapd: LOGOUT, user=xxx@mydomain.org, ip=[::ffff:12.23.34.45], headers=38, body=2008, rcvd=621, sent=3547, time=74

Last edited by spokz; 11-14-2008 at 02:01 PM. Reason: UPDATE
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix SASL - testing using MS Outlook Express sopiaz57 Linux - Server 3 09-16-2008 03:02 AM
Ms Outlook Express/Outlook questions-Is there a Linux solution? Sunguraaa General 2 06-26-2007 08:21 AM
Changing dbx and pst file of the MS Outlook and Express to Postfix mails? jpassion Linux - General 0 10-28-2004 04:46 PM
Imail Upgrade to Postfix Squirrelmail and Outlook Express Virtual Domain Logon ramram29 Linux - Software 0 01-29-2004 10:21 AM
postfix outgoing mail fail from outlook express importboy03 Linux - Networking 0 02-20-2003 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration