Ubuntu Servers :: Postfix Configuration And Use Error
Jan 12, 2011
I am setting up a mail server on an Ubuntu 10.04 LTS desktop. I am using the tutorial at [URL] to do it, and have followed it (i believe) to the letter. However, when i try to use postfix, this error appears in mail.log
server postfix/smtpd[14270]: NOQUEUE: reject: RCPT from smtp110-mob.biz.mail.gq1.yahoo.com[98.136.185.201]: 554 5.7.1 <smtp110-mob.biz.mail.gq1.yahoo.com[98.136.185.201]>: Client host rejected: Access denied; from=<myemail@yahoo.com> to=<admin@mydomain.com> proto=SMTP helo=<smtp110-mob.biz.mail.gq1.yahoo.com>
and it will not recieve.
My main.cf: (mydomain is replaced by my domain in the file)
Code:
smtpd_banner = $myhostname ESMTP $mail_name Welcome!
biff = no
append_dot_mydomain = no
readme_directory = no
make install then i got this error: postfix: fatal: chdir(/usr/libexec/postfix): No such file or directory make: *** [install] Error 1 I don't understand why it's checking the usr/libexec folder for the daemons although I've set the folder to /opt/product/postfix-2.6.5/libexec in the makefile. Here is also the cat of my makedefs.out:
I have a postfix server running on a virtual machine hosted by vpslink.com. I have followed the following configuration guide to install the system with dovecot, sasl smtpd authentication, and postfix as an mta: [URL](I know it says it's a debian configuration, but it seemed legitimate that I could follow it). Anyway, in sending email from my primary email account, I have found that roughly 1/2 of the messages are delivered, and 1/2 of them are rejected with a message similar to the following:
I am trying to make my elastix voip server to send and receive e-mails. It has built in Postfix mail server, and i tried to configure it.I am not sure about some parameters, such as domain and hostname.Either way, i will attach my config file and the errors that i get from log and mail queue as i get them from webmin.
I have setup a postfix + courier + squirrelmail email configuration. I can get to the squirrelmail login page and run its test and it said everything was fine. After that I am stuck. What is the username and password or if it is not created, how do I create it?
I am building an email server in what I consider to be a 'small business'. I would say my Postfix mail server will house 300 mailboxes (Max). I have a decent server with enough RAM / disk space to run this email server however I don't know what the best way is to manage / configure the users mail boxes.
how to create a new user on the Linux server using 'adduser / useradd' and then setting their shell to /bin/nologin. This is because the mail user will never need to log into the shell of the mail server directly and can still populate email from their mailbox which is located in their /home/$user directory. Now many people I spoke with have advised me that this is a bad and cumbersome method of account administration.
configuring my postfix server to send mail over smtps port 465. My ISP (as is the case with many ISPs), is blocking outbound SMTP, so I need to configure postfix to relay my mail out through my ISPs SMTP servers.
I was able to get it to work with gmail, which uses port 587, by using SASL: [URL] but that configuration is less than ideal as gmail drops the "reply to" address so when people receive my email, it looks like it's from gmail instead of from my server.
If I use my ISP SMTP servers as a relay the "reply to" address is not stripped, but the relay uses ssl over port 465 instead of TLS. According to the SASL readme:
Quote:
Postfix does not deliver mail via TCP port 465 (the obsolete "wrappermode" protocol). See TLS_README for a solution that uses the "stunnel" command.
I've looked at the TLS_README and can't figure out what I need to do. how to configure this?
Let me start off by saying I am experienced with computers, though my knowledge of Linux and networking is limited. I've just recently started setting up a Ubuntu 10.04 server to be a SMTP server. I've followed this guide by the letter: [URL] What I've attempted, to test the server, is the following:
telnet localhost 25 ehlo localhost
(this returns all the desired information) I then do a MAIL FROM my domain which is accepted, and try to do a RCPT TO an external mail server (gmail) to test sending an email. I am then told 'Relay Access Denied'. I'm sure that there's something fundamental that I'm either not understanding or not doing correctly. I simply want an SMTP server that can send to other domains. What do I need to do?
i have been working on setting up an email server over a ddns. All seems to be working (i can email me@my_ddns_domain.com to me@my_ddns_domain.com) except that when i try and send to another email address (some_other_me@other_host.com) i get the error "5.7.1 Relay access denied". The way i tested this is as follows: Code: me@my_ddns_domain:~/$ netcat my_ddns_domain.com 25 220 my_ddns_domain.com ESMTP Postfix (Ubuntu) ehlo localhost 250-my_ddns_domain 250-PIPELINING
On Ubuntu server 10.10, with a relay smtp server with authentication via postfix; I keep getting 535: Incorrect authentication data. I'm sure my username and password is correct. Heres how I set up postfix: I created a file called smarthosts.conf in my /etc/postfix/ directory that contains the following:
[Code].....
my server uses plain text authentication on port 25. I would like to use security like SSL, but this particular server is unsecured.
I have a web server running and wish to get a mail server running on the same machine. I have a registered domain name. I have postfix and dovecot installed. I can send emails from the server to my normal address on a different domain but cannot receive mail. I can send and receive mail locally with no problems. I just don't know where to look for the problems. If you need any more info ( config files/doamin names etc let me know)
error found with your "Postfix virtual maps": No "map sources" were found in the Postfix configuration. your system is not ready for use by Virtualmin. how do I set this?
I'm running Postfix primarily as a local email server. There is no email coming in from other machines, and there are no other machines using it to send mail. But I'd like it to be able to send mail. I use Evolution for my normal email stuff, and it's configured to send mail to my ISP's smtp server, and that's working fine. But I occasionally send mail from the command line, using the "mail" or "mutt" utilities. (Mutt because the standard mail doesn't support attachments.) These don't use Evolution's configuration, they depend upon whatever is listening to port 25 - and that's Postfix. So all I should need to do is to give Postfix the smtp server, user name, and password. My problem is that Postfix has voluminous documentation online, and I haven't been able to find this simple configuration in it.
telnet mydomain.com 25 helo validdomain.com mail from: validaddress@validdomain.com rcpt to: validuser@mydomain.com
[code]....
When I run this test, as expected, the email is delivered to validuser. However, postfix also delivers it to user1 and user2 despite the fact that the sender does not belong to my domain. I have implemented client, helo and recipient restrictions as below. How do I prevent the malicious use of CC as described here?
I have currently configured Postfix as an SMTP server. I would preferably not use a domain name in my email address, like so: myname@[1.2.3.4]
I'm currently testing to see how other mail servers handle this kind of address. When I sent a mail with one one of my gmail accounts, I see that the mail gets rejected due to bad syntax.
It seems as though Google is giving me a RCPT TO address like so: myname@1.2.3.4 However, the postfix server rejects this address with the following error:
501 5.1.3 Bad recipient address syntax
To my best knowledge the only way to have an IP address inside an email address with to write it as a domain literal [1.2.3.4].
My question: how to configure postfix to accept myname@1.2.3.4 as well?
I have put both [1.2.3.4] and 1.2.3.4 in "mydestination" and 1.2.3.4 in "virtual_alias_domains".
cups does not start with the server. When I try to start from the terminal I get the error message cupsd: Unable to read configuration file '/etc/cups/cupsd.conf' - exiting! cupsd: Child exited with status 1!
The log files show nothing. cupsd.conf exists. It is user - root and group - root with permissions set at 0644. My interpretation of this is that the program is not launching from either boot or terminal for a fundamental reason. I do not quite see what that reason is ..
My Postfix cannot currently create any folders other than inbox. Even when I send an e-mail I receive an error along the lines of, "Could not create sendmail folder." Also, my Postfix isn't receiving e-mails, and can only send e-mails to other accounts on the server. I called my ISP and they told me my port 25 isn't blocked, and it is forwarded on my router so I am not sure what could be wrong. I am using zoneedit as my name server and I am pretty sure my MX record is good.
I can't seem to reinstall Postfix. I followed a guide and couldn't get it to work. After I retried a few times I gave up and deleted all files and folders I could find related to Postfix. Well I realized what the issue was and now that I want to try reinstalling Postfix it won't allow me.
When I type:
Code: sudo apt-get install postfix Reading package lists... Done Building dependency tree Reading state information... Done postfix is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 1 not fully installed or removed.
I am trying to install a mail server (postfix). I followed the instructions (up until SMTP, I do not want that) on ubuntu pages, without any result. I can send mail, but I can't get any.
I have been following the guide atand it has all worked perfectly and as expected, except for when it says to run "telnet localhost 25". Instead of getting an ip address displayed as I have seen it is supposed to, it just out puts this."Trying 127.0.0.1...Connected to localhost.localdomain.Escape character is '^]'.Connection closed by foreign host."
I'm trying to configure postfix on an ubuntu virtual machine to use gmail as a relay client. For the past two days I have been in and out of the logs, changing parameters and blindly following tutorials but I can't get anything to work properly. So far I've narrowed my problems down to tls connection establishing and a failure to authenticate, judging by the local emails I've received from "The mail system".
i created a second instance of postfix.It isn' t the first time that i made this procedure but with debian i had a lot of problem.I think that the problem is chroot configuration of postfix .In the first i had two problem smtp “fatal: unknown service: smtp/tcp” and the second instance was enable to make nslookup of domain.I copied the necessary file in /var/spool/postfix-second-instace and i solved the errors.Now the problem is that there aren't error in log file but connect to xxx.xxx.net[yyy.nn.yyy.yyy]:25: Connection timed out for all connection. and the email are all in defer directory and the second instance doesn' t send emails.
The problem I have is so simple yet difficult for me to resolve. My Postfix MTA allow fake mails from me@example.com to me@example.com. How can I block them?
For example, if I do "telnet smtp.mail.yahoo.it 25", as I write the MAIL FROM command I get the alert "Authentication required". How can I achieve that?
I have setup Postfix + Dovecot on my basic debian 5 server. If I send a message to a localuser@mydomain.com from mutt, it delivers just fine and is visible when viewed through squirrelmail, I can also send just fine.
My issue is that irrespective of what options I set in main.cf, I cannot for the life of me get Postfix to stop erroring with "Recipient address rejected: User unknown in virtual alias table". I'm stumped.
My main.cf is as follows code...
I do not want to setup virtual hosting with MySQL or similar, I literally want to receive mail in local users mailboxes for a single domain. Any ideas on what's missing?
I have an OpenSuse 11.2 system that is running 2 BBS systems independently, both of which are capable of receiving smtp mail on prot 25. What I would like to do is set up Postfix on the OpenSuse OS to receive all mail for both those domains and then send the relevant mail to the correct BBS. I would therefore have Postfix listening on Port 25 External and the 2 BBS applications listening on different ports on the localhost address. At least that is the plan.
how to do this. I want to do it and still make sure Postfix is secure and not accidentally open up any nasty relay holes etc etc.
I was reading over and checking the How to section on the Wiki for Postfix TLS / SASL. I followed it completely and everything seems to be working fine however I am confused about the following section:
smtpd_tls_security_level = may smtpd_tls_key_file = /etc/pki/tls/private/mail.example.com.key smtpd_tls_cert_file = /etc/pki/tls/certs/mail.example.com.cert[code].....
at first, sendmail was installed and everything was working great. all the email sent from forum and webform I host as been sent correctly in the reception box of the recipient. But I want postfix as MTA to do my delivery to all my virtual domain I host.
when sendmail is uninstalled and postfix installed and all services configured(php included) and restarted(apache included), when I send a email from command line or from web form, the email goes in junk mail for some ISP email address and for gmail and the email did'nt show at all for hotmail. but email sent from forum (phpbb) still goes in reception box like normal email do.
I tried do change the headers, who was working with sendmail, of the email sent from web form without success.
so I tried to uninstall postfix and reinstall sendmail, restarted all service and every thing was back to normal... email sent goes in reception box.
I tried it twice.... sendmail, postfix, sendmail, postfix and now back to sendmail for a working solution until I get postfix working.
I tried with spf entry in my dns, I tried allowed icmp packet from outside with iptables, I tried many different headers for my email. My ip is not blacklisted anywhere.