LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 11-13-2003, 11:07 AM   #1
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
postfix : sending local mail without domain


I'm setting up postfix on a local network. I've got everything working fine. Mail sent locally to postfix is stored on the mail server and retrieved using POP3 from the mail clients. Postfix correctly sends email out to the internet when it should so all is well with the world.

What I would like is to omit the @hostname from name for local mails. So if ann wants to send an email to bob she can just send it to "bob" rather than "bob@mailserver". All mail sent is from a mail client which is configured with mailserver as the SMTP host so it should hit the mailserver whatever the name is.

I guess what's required is for postfix to understand that a mail received with no hostname should be assumed for localhost. I thought this must be something to do with aliases but I can't quite figure out what.

Any help greatly appreciated.
 
Old 12-04-2003, 11:20 PM   #2
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
It works on my server, here, with default settings. Do you have any logs when you try bob without the @server?
 
Old 12-10-2003, 03:05 AM   #3
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Original Poster
Rep: Reputation: 30
Hi ugob.

It works for me sending mail from the server to other accounts on the same server. The problem comes when I send it from a remote client.

However, I think I've sort of figured out the problem. When I send mail to "bob" from a mail client, it automatically appends the hostname of the client. Kmail has the ability to configure a default domain for sending mail, so if the clients are kmail the problem can be solved.

Unfortunately Mozilla mail client, for example, doesn't see to have this ability. With Mozilla I have worked around by creating entries in my address book for "bob@mailserver" and if I type "Bob", Moz helpfully pulls out the right address.

I don't know if there's a better way round it. Since the mail does have an @xxx extension by the time it gets to postfix, the only way round it that I can see would be to configure postfix to treat all mail with a local domain as local to that server. So bob@homer.acme.com and bob@marge.acme.com would hit the mailserver.acme.com box and be forwarded to local mailboxes for bob and marge.

Maybe I could do this with procmail, but I don't know how right now.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 11:16 AM
Sending mail outside my LAN using Postfix Harlin Linux - Networking 1 07-18-2005 04:16 AM
sending mail from my new domain name BU5T4 Linux - Newbie 1 12-12-2003 05:22 PM
POstfix not sending to a local exchange server hawkpaul Linux - Software 10 06-04-2003 07:54 AM
Sending mail to Postfix on LAN JimKyle Linux - Networking 0 02-11-2003 04:12 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration