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.
We are using postfix for relaying our internal system generated mail to other domain through google apps.
All client servers able to send mail through the postfix server, only user of local postfix server(root, etc) unable to send mail with command like mutt, mail.My detail configuration given below:
connect from localhost.localdomain[127.0.0.1]
E344E9E98A0: client=localhost.localdomain[127.0.0.1]
disconnect from localhost.localdomain[127.0.0.1]
That doesn't look like any Postfix log that I have ever seen. Lets start with a more complete segment from the mail log that shows a complete transaction summary. The log messages will indicate things like time stamps and the daemon process involved, which your snippit is missing.
The small section of the log entry above shows that connections are being established, the queue manager is assigning an ID to the message and the sending application is disconnecting. It doesn't show what is happening to the message, which can be a little bit convoluted. Here is an example from my own server, where root sent a daily mail to myself. I believe this is quite similar to your case as it is a local account sending mail to a non account address (I use virtual delivery).
As you can see the codes, like your F12D39E9447 represent the ID of the message and can be used to follow what is happening. You can also see the action of the different daemon processes, like qmgr, cleanup, and pickup. In my case, root contacts Postfix via localhost and the message is assigned an ID of BDBB0D94. This is put into the queue and the smtpd process re-sends it out and it is given the id of 94BF2ADD. The purpose here is content scanning. Once it has been declared 'clean' it is passed back into the queue and delivered. Note that the BDBB0D94 is still part of the ID string. Upon delivery, Dovecot picks the message up and holds it for reception.
You will need to examine your logs for the transaction trail to see what is happening. The information you provided does not answer this question. While the 'error' may be in your main.cf that you posted, it is difficult to even guess what parameter may be responsible.
Code:
Jul 14 03:00:01 server postfix/pickup[13768]: BDBB0D94: uid=0 from=<root>
Jul 14 03:00:01 server postfix/cleanup[14081]: BDBB0D94: message-id=<20110714070001.BDBB0D94@myserver.mydomain>
Jul 14 03:00:01 server postfix/qmgr[8134]: BDBB0D94: from=<root@myserver.mydomain>, size=6217, nrcpt=1 (queue active)
Jul 14 03:00:11 server postfix/smtpd[14088]: connect from localhost[127.0.0.1]
Jul 14 03:00:11 server postfix/smtpd[14088]: 94BF2ADD: client=localhost[127.0.0.1]
Jul 14 03:00:11 server postfix/cleanup[14081]: 94BF2ADD: message-id=<20110714070001.BDBB0D94@myserver.mydomain>
Jul 14 03:00:11 server postfix/qmgr[8134]: 94BF2ADD: from=<root@myserver.mydomain>, size=6681, nrcpt=1 (queue active)
Jul 14 03:00:11 server postfix/smtpd[14088]: disconnect from localhost[127.0.0.1]
Jul 14 03:00:11 server amavis[8983]: (08983-06) Passed CLEAN, <root@mmyserver.mydomain> -> <me@email.domain>, Message-ID: <20110714070001.BDBB0D94@mmyserver.mydomain>, mail_id: a9UfmofMIAD5, Hits: -0.001, size: 6217, queued_as: 94BF2ADD, 9798 ms
Jul 14 03:00:11 server postfix/smtp[14084]: BDBB0D94: to=<me@email.domain>, relay=127.0.0.1[127.0.0.1]:10024, delay=10, delays=0.2/0.03/0.01/9.8, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=08983-06, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 94BF2ADD)
Jul 14 03:00:11 server postfix/qmgr[8134]: BDBB0D94: removed
Jul 14 03:00:11 server dovecot: deliver(me@email.domain): msgid=<20110714070001.BDBB0D94@myserver.mydomain>: saved mail to INBOX
Jul 14 03:00:11 server postfix/pipe[14089]: 94BF2ADD: to=<mme@email.domain>, relay=dovecot, delay=0.16, delays=0.07/0.01/0/0.07, dsn=2.0.0, status=sent (delivered via dovecot service)
Jul 14 03:00:11 server postfix/qmgr[8134]: 94BF2ADD: removed
In my case it seems that while sending mail from local users, localhost.localdomain getting connected and instantly disconnecting due to some reason.
There might be some minor adjustment which needs to be done in main.cf file (which I provided earlier) and hopefully you all expert people can figure it out.
I am wondering if you have some sort of application conflict. The output you have provided looks like it contains a lot of items that may be conflicting and it looks jumbled. For example, you have xyz.co.in listed in both mydomain and relay_domain and if it is the domain of the server, why would you relay for that domain? I think one thing you might want to do is try to pare back to a simple Postfix main.cf and see if you can get things to work. Then start adding in additional controls one at a time until you find one that breaks things.
Also is localhost.localdomain truly what is appearing as the connection attempt or are you using that as an example? I ask because seeing "localhost.localdomain" seems weird in a Postfix log which normally has connect from localhost. For example, I normally only see
Code:
postfix/smtpd[3529]: connect from localhost[127.0.0.1]
It looks like whatever process is trying to send mail is dropping the connection before it completes. So another approach may be to look at it from the perspective of Postfix not being the problem. What happens when you try to do an SMTP test via telnet or better yet, just launch sendmail from the command line?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.