View Full Version : MX records - Mail Servers
alexillsley
1st February 2007, 01:59
Hi
What is the default address of my mail server for my hosting, as i need to set the MX record.
Thanks,
Alex
martinfst
1st February 2007, 09:49
How should we be able to tell? You own the domain, you know the IP of the server, so you have all the details I think. Combine the server IP with the server name/domain and you're ready to go.
alexillsley
1st February 2007, 15:41
i posted this becuase i was wondering if it would be like pop3.domain.com or mail.domain.com
Thanks
How does the webmail (Ubei....) authenticate? does it authenticate by trying to connet to pop3? as it won let me log in even though i have created a used & email on the site
till
1st February 2007, 15:50
i posted this becuase i was wondering if it would be like pop3.domain.com or mail.domain.com
No, not unless you created these as A-Records in DNS. You can use any IP or domain that points to your server as SMTP and pop3 server.
How does the webmail (Ubei....) authenticate? does it authenticate by trying to connet to pop3?
yes, it logs in with pop3.
alexillsley
2nd February 2007, 01:20
There appears to be a problem with my mail server setup:confused:
Whenever i try and login at the webmai li just get an error syaing the password or username is wrong. I then set up email forwarding sent an email to my forwarded email address and it appeared not to forward it back to me. What confuses me is that fact the ISPConfig says the POP3 & SMPT server are both online:confused:
If it is of any use to you to help solve the problem the mail log has the following in it at the time of me logging in and also when i send an email for the server to forward:
l/etc/postfix/virtusertable
Feb 1 23:23:47 server1 postfix/smtpd[4713]: warning: unsupported SASL server implementation: cyrus
Feb 1 23:23:47 server1 postfix/smtpd[4713]: fatal: SASL per-process initialization failed
Feb 1 23:23:48 server1 postfix/master[4483]: warning: process /usr/lib/postfix/smtpd pid 4713 exit status 1
Feb 1 23:23:48 server1 postfix/master[4483]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Feb 1 23:23:51 server1 postfix/master[4483]: terminating on signal 15
Thanks again,
Alex
alexillsley
2nd February 2007, 02:10
I have reinstalled cryus and enabled the Mail Dir and it lets me login to the webmail!!!!!!!
Thanks for you help!
alexillsley
2nd February 2007, 14:12
I now have a new problem whenever i try to send an email with the web mail i get the following error:
It was not possible to send this e-mail
SMTP Error: Recipient not accepted. Verify your relay rules
At the time of this happening the following error's appear in the mail log:
Feb 2 11:53:00 server1 postfix/smtpd[20827]: warning: unsupported SASL server implementation: cyrus
Feb 2 11:53:00 server1 postfix/smtpd[20827]: fatal: SASL per-process initialization failed
Feb 2 11:53:01 server1 postfix/master[19931]: warning: process /usr/lib/postfix/smtpd pid 20827 exit status 1
Feb 2 11:53:01 server1 postfix/master[19931]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
falko
2nd February 2007, 14:26
What's in /etc/postfix/main.cf (please strip out the comments)?
Which distribution do you use? Did you use any of the tutorials linked on http://www.ispconfig.org/manual_installation.htm ?
alexillsley
2nd February 2007, 18:58
This is the contents of master.cf:
smtp inet n - n - - smtpd
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#localhost:10025 inet n - n - - smtpd -o content_filter=
scache unix - - n - 1 scache
#
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
procmail unix - n n - - pipe
flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
Im using the opensuse10.2 perfect setup
Thanks again for helping:)
falko
3rd February 2007, 15:21
I need main.cf, not master.cf.
alexillsley
3rd February 2007, 18:02
sorry, here is main.cf
unknown_local_recipient_reject_code = 550
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = maildrop
html_directory = /usr/share/doc/packages/postfix/html
manpage_directory = /usr/share/man
readme_directory = /usr/share/doc/packages/postfix/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
#virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = server1.$mydomain
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains =
#mydestination = $myhostname, localhost.$mydomain
defer_transports =
mynetworks_style = subnet
disable_dns_lookups = no
relayhost =
mailbox_command =
mailbox_transport =
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_ relay_domains
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = yes
smtpd_use_tls = yes
smtp_use_tls = yes
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
mydomain = ******
mynetworks = 127.0.0.0/8
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_tls_auth_only = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
virtual_maps = hash:/etc/postfix/virtusertable
mydestination = /etc/postfix/local-host-names
falko
4th February 2007, 15:54
This is what I found about your SASL error: http://bugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=350151
How exactly did you install Postfix and saslauthd?
alexillsley
4th February 2007, 16:00
I installed them as the tutorial showed me:confused:
How do i install this patch?
Thanks again
falko
5th February 2007, 14:07
I installed them as the tutorial showed me:confused:
Sure? Did you follow the tutorial as close as possible? Please try the Postfix setup again.
alexillsley
5th February 2007, 17:52
I have tryed the email section on the tutorial again and it still fails
falko
6th February 2007, 15:14
Maybe you should consider a clean re-install.
alexillsley
12th February 2007, 18:32
I cant reinstall my system becuase i have got about 5 people using it:eek:
However i have got some light on the siutation, if i comment out the following lines:
#smtp_sasl_auth_enable = yes
#smtpd_sasl_auth_enable = yes
The sending mail works:) But isnt this a security problem?
Thanks,
Alex
martinfst
12th February 2007, 22:32
This will most likely make you an open relay. Check your logs files for unusual activity!
alexillsley
12th February 2007, 22:36
so any one can send mail through my server :confused:
Is there anyway to get SASL Auth to work :confused:
Thanks,
Alex
martinfst
12th February 2007, 22:38
so any one can send mail through my serverCheck your mail logs. (/var/log/mail.log most likely)
alexillsley
12th February 2007, 22:46
YAY looks like im protected
I found some software on the internet "TopMail" which can send anyomouse email through a selected SMTP server
And it just gave me two errors when using my SMTP server
Recpient Address Rejected
Relay Denied
Looks like im safe:)
jcdirks
14th February 2007, 23:40
You might also consider to give http://www.abuse.net/relay.html a try; it checks multiple ways of sending over an open relay.
alexillsley
15th February 2007, 00:37
Thanks:) looks very usefull
my router broke so its mucked up my servers connection :(
ill test it as soon as i can:)
rasterburn
16th February 2007, 09:28
lol, i just read my mail.log quite funny, damn unauthorized bots / users:
Feb 15 02:52:50 srv1 postfix/postfix-script: starting the Postfix mail system
Feb 15 02:52:50 srv1 postfix/master[2875]: daemon started -- version 2.1.5
Feb 15 04:20:26 srv1 postfix/smtpd[3048]: connect from 61-216-82-69.dynamic.hine
t.net[61.216.82.69]
Feb 15 04:20:27 srv1 postfix/smtpd[3048]: NOQUEUE: reject: RCPT from 61-216-82-6
9.dynamic.hinet.net[61.216.82.69]: 554 <bbb1@so-net.net.tw>: Relay access denied
; from=<uifaoijkr@msa.hinet.net> to=<bbb1@so-net.net.tw> proto=SMTP helo=<***.**
.***.**>
Feb 15 04:20:28 srv1 postfix/smtpd[3048]: lost connection after RCPT from 61-216
-82-69.dynamic.hinet.net[61.216.82.69]
Feb 15 04:20:28 srv1 postfix/smtpd[3048]: disconnect from 61-216-82-69.dynamic.h
inet.net[61.216.82.69]
and then again:
Feb 15 10:42:07 srv1 postfix/smtpd[6624]: connect from unknown[61.42.190.245]
Feb 15 10:42:08 srv1 postfix/smtpd[6624]: NOQUEUE: reject: RCPT from unknown[61.
42.190.245]: 554 <joo8582@naver.com>: Relay access denied; from=<mail@yourdomain
.com> to=<joo8582@naver.com> proto=SMTP helo=<***.**.***.**>
Feb 15 10:42:08 srv1 postfix/smtpd[6624]: lost connection after RCPT from unknow
n[61.42.190.245]
Feb 15 10:42:08 srv1 postfix/smtpd[6624]: disconnect from unknown[61.42.190.245]
I assume this is the work of a spam bot as i dont know anyone who can open a telnet connection on an smtp server and send an email through it all within 1 second.
rasterburn
16th February 2007, 23:20
correction on that last post of mine, i did a bit of reading on and some minor testing of my own and found that if you send an email via a gui mail client such as microsoft outlook, or some other spaming software, the log files would read the same.... but who would know bout my server, must be an asian script kiddy trying to spam / flood / bomb someones email and failing misserably, i think they moved on to some lower hanging fruit... :D
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.