Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
about announcing my DNS server but the topic has strayed to emailing with postfix since I think I have the DNS set up properly now. I managed to open my smtp port by altering the inet_interfaces parameter to equal the ip address of the local machine, then it worked. however, i am still not receiving emails and also when i send one (by using the terminal or going thro to the users mail boxes in webmin) it says it comes from username@host.domain rather than username@domain
so next problem.... to get email server up and running properly
ok, here's the main.cf file posted below, i am aware that there are loads of settings but i think only a few need altering, not sure which though. its probably only a couple to get it working.
ok, the problem is that i can send email to anywhere without a problem, only by using the terminal or going through webmin to users mailboxes, nothing send through squirrel mail. when they recieve the email it has the email address in form of username@servername.my-example.ork.uk i want to get rid of the servername part.
the dns server and the email server are on the same machine, called "servername" but following an example for the MX record i put it as mail.my-example.org.uk does this matter even though the machine is not called mail, i would have though this would cause a problem? i cant send or receive through outlook using "servername" as the imap and smpt servers when creating an account and i cant receive mail to it at all from anywhere, the address is unrecognised, the smpt port is open and routed properly through our router.
ok an update. I can now send mail from outlook, still not able to send through squirrel mail.
to get it to send through outlook i just connected to "servername" not the mail.my-example.org.uk
still unable to receive its really doing my head in now, i did manage to get mail outwards before with outlook
never been able to receive any so far, so something is missing.
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
you do know that postfix is only the MTA (Mail Transfere Agent) and you need some kind or recieving end if you want incomming mail!
eg. a pop3 or imap server (i suggest you use cyrus 2.x)
what exactly is the issue you are having with squirrel mail (by the way - this might just be a squirrel mail config issue)
If you login to your server and type `mail` at the command line. If you see all your messages that you have been sending to yourself the smtp server is working and like Nathanael says your just short of a imap/pop3 server
ahh wait, hang on... its worked. god blimey its worked. i didnt alter a thing since last time, not sure how that happend. damn thats good. and client received it as well. how do i get rid of the hostname being put at front of domain name?
squirrel mail is still not sending, but i can see it received a mail from my hotmail account.
thank you so much for all your help, i just need this last bit working and then its pukka. special thanks to phil.d you been brilliant mate, very knowledgeable.
i use dovecot as my IMAP thingy and postfix as the MTA
To get rid of the hostname use the squirrelmail configuration script, in /path/to/squirrelmail/conf/ you should find a script - conf.pl, run that and choose option 2, you can then edit the domain - that should change the domain the mail comes from if I remember correctly. Also while your here you can make sure you path to sendmail is correct or change the delivery method to smtp and then use localhost:25 as your smtp server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.