Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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]
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.
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.
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.
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 01:01 PM.
Reason: UPDATE
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.