DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th June 2008
Demodog Demodog is offline
Port Guard
 
Join Date: May 2008
Posts: 17
Default postfix setup

not really a freebsd question but anyway..

I have just installed and configured postfix and managed to get it to send mails to the outer world. but my mail comes as jimmy@mail.domain.com but naturally I want it to say jimmy@domain.com. Do you know where to change this?

I have not setup so I can get mail, but thats what I do in the alias file i guess? Should I just type in which email goes to which user? like jimmy@domain.com: jimmy

or whats the syntax?

thankful for help!
Reply With Quote
  #2   (View Single Post)  
Old 9th June 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default

Use this link

http://www.purplehat.org/?page_id=4
Reply With Quote
  #3   (View Single Post)  
Old 10th June 2008
Demodog Demodog is offline
Port Guard
 
Join Date: May 2008
Posts: 17
Default

Yeah I have followed it but can´t seem to get it work fully. I am able to send mail to my hotmail account but I can´t reply. I think I have not set up the aliases right.

If I have a user called jimmy on my computer and want mails transported to this user from jimmy@domain.com how do I go about? I have tried setting in /etc/aliases like this:
jimmy: jimmy@localhost

shouldnt´then incoming mail to jimmy@domain.com be redirected to him?
Reply With Quote
  #4   (View Single Post)  
Old 10th June 2008
Demodog Demodog is offline
Port Guard
 
Join Date: May 2008
Posts: 17
Default

Okay you can ignore the above, I just forgot specify where the aliase file is.

Now I can both send and recieve mail! :-)

My only problem is now that I can only recieve mails when my host name is in the adress like this: jimmy@mailserver.domain.com
If I mail to jimmy@domain.com the mail never gets through.
And the same goes when I mail out, the mailadress goes like jimmy@mailserver.domain.com

do anyone know if its something I should set in postfix or something that has to do with my mx pointer?
Reply With Quote
  #5   (View Single Post)  
Old 10th June 2008
xCipherx xCipherx is offline
New User
 
Join Date: May 2008
Posts: 8
Default

Do you have this:
Code:
myhostname = mail.domain.tld
myorigin = domain.tld
mydestination = $myhostname, $mydomain, localhost.$mydomain
in you main.cf?
Reply With Quote
  #6   (View Single Post)  
Old 10th June 2008
Demodog Demodog is offline
Port Guard
 
Join Date: May 2008
Posts: 17
Wink

Thanx!! that solved half the problem, when I changed the mydestination value I am able to recieve mail sent to jimmy@domain.com

Okay so now the only problem left is that when I mail out it says jimmy@mailserver.domain.com

myorigin is set to domain.com

any ideas?
Reply With Quote
  #7   (View Single Post)  
Old 10th June 2008
xCipherx xCipherx is offline
New User
 
Join Date: May 2008
Posts: 8
Default

Do you have mydomain = domain.com in this file aswell?
Reply With Quote
  #8   (View Single Post)  
Old 10th June 2008
Demodog Demodog is offline
Port Guard
 
Join Date: May 2008
Posts: 17
Default

yes I have...
Reply With Quote
  #9   (View Single Post)  
Old 10th June 2008
Demodog Demodog is offline
Port Guard
 
Join Date: May 2008
Posts: 17
Default

I send the mail through my isp´s smtp server relayhost = smtp.jacket.se

can that have something to do with it?
Reply With Quote
Old 10th June 2008
Demodog Demodog is offline
Port Guard
 
Join Date: May 2008
Posts: 17
Default

Finally I solved the problem using this little line:

masquerade_domains = domain.com


thanx for all helps!!
Reply With Quote
Old 11th June 2008
Demodog Demodog is offline
Port Guard
 
Join Date: May 2008
Posts: 17
Default

I want squirrelmail for my postfix and therefore thinking of installing dovecot as imap. I did build postfix from portstree in freebsd but didnt add dovecot support. does it matter or can I rebuild it with support?
Reply With Quote
Old 11th June 2008
mtx's Avatar
mtx mtx is offline
Real Name: Valentin Bud
Fdisk Soldier
 
Join Date: May 2008
Location: RO/TM
Posts: 79
Default

you can (have to) recompile postfix with dovecot support.

/v
__________________
Stop! think! ... the problem is somewhere between the monitor and chair...
"First they ignore you, then they laugh at you, then they fight you, then you win." Gandhi
links: spreadbsd syk
Reply With Quote
Old 11th June 2008
Demodog Demodog is offline
Port Guard
 
Join Date: May 2008
Posts: 17
Default

well I tried installing dovecot anyway and Yes it worked :-)
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with NAT setup Quaxo OpenBSD Installation and Upgrading 6 27th January 2009 08:03 PM
DJ Setup tad1214 FreeBSD General 8 21st July 2008 01:50 PM
problem on setup!! josue Other OS 6 24th June 2008 05:29 AM
How To Setup WPA? warriors OpenBSD General 8 15th June 2008 04:39 PM
IP Printer Setup kjemison FreeBSD General 4 2nd June 2008 02:35 PM


All times are GMT. The time now is 02:05 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick